|
|
|
@ -20,26 +20,26 @@ namespace Shentun.WebPeis.AppointPatientRegisters |
|
|
|
{ |
|
|
|
private readonly IRepository<AppointPatientRegister> _repository; |
|
|
|
private readonly IRepository<ItemType> _itemTypeRepository; |
|
|
|
private readonly IRepository<DiseaseScreeningType> _diseaseScreeningTypeRepository; |
|
|
|
private readonly CacheService _cacheService; |
|
|
|
|
|
|
|
private readonly AppointPatientRegisterManager _appointPatientRegisterManager; |
|
|
|
public AppointPatientRegisterAppService(IRepository<AppointPatientRegister> repository, |
|
|
|
CacheService cacheService, |
|
|
|
IRepository<ItemType> itemTypeRepository, |
|
|
|
IRepository<DiseaseScreeningType> diseaseScreeningTypeRepository |
|
|
|
AppointPatientRegisterManager appointPatientRegisterManager |
|
|
|
) |
|
|
|
{ |
|
|
|
_repository = repository; |
|
|
|
_cacheService = cacheService; |
|
|
|
_itemTypeRepository = itemTypeRepository; |
|
|
|
_diseaseScreeningTypeRepository = diseaseScreeningTypeRepository; |
|
|
|
_appointPatientRegisterManager = appointPatientRegisterManager; |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
[HttpPost("api/app/AppointPatientRegister/Create")] |
|
|
|
public async Task CreateAsync(CreateAppointPatientRegisterDto input) |
|
|
|
{ |
|
|
|
|
|
|
|
var entity = ObjectMapper.Map<CreateAppointPatientRegisterDto, AppointPatientRegister>(input); |
|
|
|
entity = await _appointPatientRegisterManager.CreateAsync(entity); |
|
|
|
} |
|
|
|
} |
|
|
|
} |