From a302956a6d1eec008bc0ea9f13797ec08b0a95f3 Mon Sep 17 00:00:00 2001 From: Kittapath Date: Tue, 2 Jul 2024 22:22:55 +0700 Subject: [PATCH] no message --- .../Repositories/Commands/CommandRepository.cs | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) 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) {