We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 0617aa4 + f87d03d commit 9bd96f2Copy full SHA for 9bd96f2
CheckDrive.Api/CheckDrive.Application/Services/DashboardService.cs
@@ -74,14 +74,14 @@ private async Task<List<CheckPointSummary>> GetCheckPointsSummariesAsync()
74
{
75
var checkPoints = await _context.CheckPoints
76
.Where(x => x.StartDate == DateTime.UtcNow || x.Status == CheckPointStatus.InProgress)
77
+ .OrderByDescending(x => x.Id)
78
.Select(x => new CheckPointSummary(
79
x.Id,
80
x.StartDate,
81
x.DoctorReview.Driver.FirstName + " " + x.DoctorReview.Driver.LastName,
82
x.MechanicHandover != null ? x.MechanicHandover.Car.Model : "",
83
x.Stage,
84
x.Status))
- .OrderByDescending(x => x.Id)
85
.ToListAsync();
86
87
return checkPoints;
0 commit comments