rowData isn't HeaderCommon

This commit is contained in:
2023-02-10 10:25:38 -07:00
parent 2481c2b3ff
commit 45ea70212e
5 changed files with 10 additions and 44 deletions

View File

@ -18,7 +18,7 @@ public class PinController : Controller, IPinController<IActionResult>
_PinRepository = pinRepository;
}
[HttpPost("/api/pin/markAsPinned")]
[HttpPost("{toolTypeId}/markAsPinned")]
public IActionResult MarkAsPinned(Shared.DataModels.HeaderCommon headerCommon)
{
_PinRepository.SetPinnedTable(headerCommon);
@ -26,8 +26,8 @@ public class PinController : Controller, IPinController<IActionResult>
}
[HttpGet]
[Route("{id}/pinned")]
public IActionResult GetPinnedTable(int id, string? biorad_id = null, string? cde_id = null, string? rds = null) =>
Json(_PinRepository.GetPinnedTable(_MetrologyRepository, id, biorad_id, cde_id, rds), new JsonSerializerOptions { PropertyNamingPolicy = null, WriteIndented = true });
[Route("{toolTypeId}/pinned")]
public IActionResult GetPinnedTable(int toolTypeId, string? biorad_id = null, string? cde_id = null, string? rds = null) =>
Json(_PinRepository.GetPinnedTable(_MetrologyRepository, toolTypeId, biorad_id, cde_id, rds), new JsonSerializerOptions { PropertyNamingPolicy = null, WriteIndented = true });
}