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 {