Merge branch 'Test_IRC_Net8' of http://192.168.3.68:2000/XCKJ/irc-netcore-api into Test_IRC_Net8
continuous-integration/drone/push Build is running

This commit is contained in:
2024-10-22 14:38:18 +08:00
5 changed files with 18136 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;
}