rowData isn't HeaderCommon
This commit is contained in:
@ -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 });
|
||||
|
||||
}
|
Reference in New Issue
Block a user