added ability to pin notes so that they always show up on top.

This commit is contained in:
DESKTOP-T0O5CDB\DESK-555BD
2024-01-23 17:46:54 -07:00
parent be81f9727a
commit a9e3e44f2c
4 changed files with 9 additions and 1 deletions

View File

@@ -1266,6 +1266,7 @@ namespace CarCareTracker.Controllers
public IActionResult GetNotesByVehicleId(int vehicleId)
{
var result = _noteDataAccess.GetNotesByVehicleId(vehicleId);
result = result.OrderByDescending(x => x.Pinned).ToList();
return PartialView("_Notes", result);
}
[HttpPost]