From 6917e8e573828f895506ebf3a4274b5601a51a9c Mon Sep 17 00:00:00 2001 From: "DESKTOP-2S5P7D1\\Windows 10" Date: Wed, 6 Sep 2023 14:24:24 +0700 Subject: [PATCH] include insignia --- .../Controllers/InsigniaRequestController.cs | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/BMA.EHR.Insignia.Service/Controllers/InsigniaRequestController.cs b/BMA.EHR.Insignia.Service/Controllers/InsigniaRequestController.cs index db2af0c9..7a6f9619 100644 --- a/BMA.EHR.Insignia.Service/Controllers/InsigniaRequestController.cs +++ b/BMA.EHR.Insignia.Service/Controllers/InsigniaRequestController.cs @@ -1071,6 +1071,12 @@ namespace BMA.EHR.Insignia.Service.Controllers }; await _context.InsigniaNotes.AddAsync(insigniaNote); await _context.SaveChangesAsync(); + insigniaNote = await _context.InsigniaNotes + .Include(x => x.InsigniaNoteProfiles) + .ThenInclude(x => x.Profile) + .Include(x => x.InsigniaNoteProfiles) + .ThenInclude(x => x.RequestInsignia) + .FirstOrDefaultAsync(x => x.Id == insigniaNote.Id); } var requestOlds = await _context.InsigniaRequests .Where(p => p.Period == insigniaPeriod)