From 39cebf60faf4c15adc65c0f35d809971ffd4b3f6 Mon Sep 17 00:00:00 2001 From: Suphonchai Phoonsawat Date: Thu, 11 May 2023 11:38:43 +0700 Subject: [PATCH] =?UTF-8?q?fix=20bugs=20=E0=B8=A3=E0=B8=B2=E0=B8=A2?= =?UTF-8?q?=E0=B8=87=E0=B8=B2=E0=B8=99=E0=B9=81=E0=B8=9A=E0=B8=9A=E0=B8=A2?= =?UTF-8?q?=E0=B9=88=E0=B8=AD=E0=B9=81=E0=B8=AA=E0=B8=94=E0=B8=87=E0=B8=9C?= =?UTF-8?q?=E0=B8=A5=20error?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Controllers/ProfileReportController.cs | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/Controllers/ProfileReportController.cs b/Controllers/ProfileReportController.cs index 7c05bab..030e2bc 100644 --- a/Controllers/ProfileReportController.cs +++ b/Controllers/ProfileReportController.cs @@ -74,8 +74,8 @@ namespace BMA.EHR.Report.Service.Controllers { try { - var profile_salaries = (from ps in _context.ProfileSalaries.ToList() - join pos in _context.PositionPaths.ToList() + var profile_salaries = (from ps in _context.ProfileSalaries + join pos in _context.PositionPaths on ps.PositionId equals pos.Id where ps.Profile.Id == id select new @@ -493,7 +493,7 @@ namespace BMA.EHR.Report.Service.Controllers OcFullPath = profile2.OcFullPath }).ToList(); - while (salary.Count < 20) + while (salary.Count < 1) { salary.Add(new {