This commit is contained in:
he
2024-10-22 13:55:09 +08:00
parent 3dcf94f637
commit ab4e1f8649
6 changed files with 18181 additions and 9 deletions
@@ -211,7 +211,7 @@ namespace IRaCIS.Core.Application.Service
/// <param name="inDto"></param>
/// <returns></returns>
[HttpPost]
public async Task UpdateGneralSituation(UpdateGneralSituationDto inDto)
public async Task<bool> UpdateGneralSituation(UpdateGneralSituationDto inDto)
{
await _doctorRepository.UpdatePartialFromQueryAsync(x => x.Id == inDto.Id, x => new Doctor()
@@ -219,7 +219,8 @@ namespace IRaCIS.Core.Application.Service
Summarize = inDto.Summarize,
SummarizeEn = inDto.SummarizeEn,
});
await _doctorRepository.SaveChangesAsync();
var success= await _doctorRepository.SaveChangesAsync();
return success;
}
@@ -242,12 +243,14 @@ namespace IRaCIS.Core.Application.Service
/// <param name="inDto"></param>
/// <returns></returns>
[HttpPost]
public async Task UpdatePaymentMode(PaymentModeDto inDto)
public async Task<bool> UpdatePaymentMode(PaymentModeDto inDto)
{
var doctor = await _doctorRepository.FirstOrDefaultAsync(t => t.Id == inDto.Id).IfNullThrowException();
_mapper.Map(inDto, doctor);
var success = await _doctorDictionaryRepository.SaveChangesAsync();
return success;
}