3 changed files with 98 additions and 3 deletions
-
1src/Shentun.Peis.Application/GuideTypes/GuideTypeAppService.cs
-
61src/Shentun.Peis.Domain/Diagnosises/DiagnosisManager.cs
-
39src/Shentun.Peis.Domain/Suggestions/SuggestionManager.cs
@ -0,0 +1,39 @@ |
|||
using Shentun.Peis.Models; |
|||
using System; |
|||
using System.Collections.Generic; |
|||
using System.Linq; |
|||
using System.Text; |
|||
using System.Threading.Tasks; |
|||
using Volo.Abp; |
|||
using Volo.Abp.Domain.Repositories; |
|||
using Volo.Abp.Domain.Services; |
|||
|
|||
namespace Shentun.Peis.Suggestions |
|||
{ |
|||
public class SuggestionManager : DomainService |
|||
{ |
|||
|
|||
|
|||
private readonly IRepository<Suggestion, Guid> _repository; |
|||
|
|||
public SuggestionManager( |
|||
IRepository<Suggestion, Guid> repository |
|||
) |
|||
{ |
|||
_repository = repository; |
|||
} |
|||
|
|||
|
|||
/// <summary>
|
|||
///删除
|
|||
/// </summary>
|
|||
/// <param name="id"></param>
|
|||
/// <returns></returns>
|
|||
/// <exception cref="UserFriendlyException"></exception>
|
|||
public async Task CheckAndDeleteAsync(Guid id) |
|||
{ |
|||
await _repository.DeleteAsync(id); |
|||
|
|||
} |
|||
} |
|||
} |
|||
Write
Preview
Loading…
Cancel
Save
Reference in new issue