From eb5de77b2d3ce8674c0d2a4391b3aabc72255660 Mon Sep 17 00:00:00 2001 From: Bright Date: Wed, 27 Nov 2024 17:38:02 +0700 Subject: [PATCH] =?UTF-8?q?sort=20=E0=B9=80=E0=B8=A3=E0=B8=B5=E0=B8=A2?= =?UTF-8?q?=E0=B8=87=E0=B8=88=E0=B8=B2=E0=B8=81=E0=B8=A7=E0=B8=B1=E0=B8=99?= =?UTF-8?q?=E0=B8=97=E0=B8=B5=E0=B9=88=E0=B8=AA=E0=B8=A3=E0=B9=89=E0=B8=B2?= =?UTF-8?q?=E0=B8=87?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../Controllers/DisciplineComplaint_AppealController.cs | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/BMA.EHR.Discipline.Service/Controllers/DisciplineComplaint_AppealController.cs b/BMA.EHR.Discipline.Service/Controllers/DisciplineComplaint_AppealController.cs index 0d37d932..6eb01ba6 100644 --- a/BMA.EHR.Discipline.Service/Controllers/DisciplineComplaint_AppealController.cs +++ b/BMA.EHR.Discipline.Service/Controllers/DisciplineComplaint_AppealController.cs @@ -106,7 +106,7 @@ namespace BMA.EHR.DisciplineComplaint_Appeal.Service.Controllers var data_search = (from x in _context.DisciplineComplaint_Appeals where x.Title.Contains(keyword) || - x.Description.Contains(keyword) || + //x.Description.Contains(keyword) || x.CaseType.Contains(keyword) || x.CaseNumber.Contains(keyword) || x.Fullname.Contains(keyword) || @@ -134,8 +134,9 @@ namespace BMA.EHR.DisciplineComplaint_Appeal.Service.Controllers CitizenId = x.CitizenId, ProfileId = x.ProfileId, LastUpdatedAt = x.LastUpdatedAt, + CreatedAt = x.CreatedAt }) - .OrderByDescending(x => x.LastUpdatedAt) + .OrderByDescending(x => x.CreatedAt) .Skip((page - 1) * pageSize) .Take(pageSize) .ToList();