diff --git a/Marco.Pms.Services/Service/ServiceProjectService.cs b/Marco.Pms.Services/Service/ServiceProjectService.cs index 24d57a2..195f266 100644 --- a/Marco.Pms.Services/Service/ServiceProjectService.cs +++ b/Marco.Pms.Services/Service/ServiceProjectService.cs @@ -114,11 +114,11 @@ namespace Marco.Pms.Services.Service // Fetch projects for the requested page with ordering by newest var serviceProjects = await serviceProjectQuery .OrderBy(p => - p.ProjectStatusId == ActiveProjectStatusId ? 0 : - p.ProjectStatusId == InProgressProjectStatusId ? 1 : - p.ProjectStatusId == OnHoldProjectStatusId ? 2 : - p.ProjectStatusId == InActiveProjectStatusId ? 3 : - p.ProjectStatusId == CompletedProjectStatusId ? 4 : 5) + p.StatusId == ActiveProjectStatusId ? 0 : + p.StatusId == InProgressProjectStatusId ? 1 : + p.StatusId == OnHoldProjectStatusId ? 2 : + p.StatusId == InActiveProjectStatusId ? 3 : + p.StatusId == CompletedProjectStatusId ? 4 : 5) .ThenBy(p => p.ShortName) .Skip((pageNumber - 1) * pageSize) .Take(pageSize)