Commit 4c079234 authored by Almouhannad's avatar Almouhannad

(B) order waiting list records

parent 082c79a7
...@@ -25,6 +25,7 @@ public class WaitingListRepository : Repositroy<WaitingListRecord>, IWaitingList ...@@ -25,6 +25,7 @@ public class WaitingListRepository : Repositroy<WaitingListRecord>, IWaitingList
{ {
var query = _context.Set<WaitingListRecord>() var query = _context.Set<WaitingListRecord>()
.Where(waitingListRecord => waitingListRecord.Id == id) .Where(waitingListRecord => waitingListRecord.Id == id)
.OrderByDescending(witingListRecord => witingListRecord.ArrivalTime)
.Include(witingListRecord => witingListRecord.Patient) .Include(witingListRecord => witingListRecord.Patient)
.ThenInclude(patient => patient.PersonalInfo) .ThenInclude(patient => patient.PersonalInfo)
.Include(witingListRecord => witingListRecord.Patient) .Include(witingListRecord => witingListRecord.Patient)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment