diff --git a/BMA.EHR.Application/Repositories/Commands/CommandRepository.cs b/BMA.EHR.Application/Repositories/Commands/CommandRepository.cs index 91c75474..5abe1422 100644 --- a/BMA.EHR.Application/Repositories/Commands/CommandRepository.cs +++ b/BMA.EHR.Application/Repositories/Commands/CommandRepository.cs @@ -5407,7 +5407,7 @@ namespace BMA.EHR.Application.Repositories.Commands var _res = await client.PostAsJsonAsync(apiUrl, new { isLeave = true, - leaveReason = "ได้รับโทษทางวินัย ให้ออกจากราชการ", + leaveReason = "ให้ออกจากราชการ", dateLeave = command.CommandAffectDate, }); var _result = await _res.Content.ReadAsStringAsync(); @@ -9160,8 +9160,8 @@ namespace BMA.EHR.Application.Repositories.Commands { ret.Add(new KeyValueItemResponse { - Id = raw.result!.rootId??null, - Name = raw.result!.root??null, + Id = raw.result!.rootId ?? null, + Name = raw.result!.root ?? null, }); } } @@ -9800,7 +9800,7 @@ namespace BMA.EHR.Application.Repositories.Commands var Insignias = await _dbContext.Set() .Include(x => x.Insignia) - .Where(x => profile.Id==x.ProfileId) + .Where(x => profile.Id == x.ProfileId) .ToListAsync(); if (Insignias.Count > 0) {