Test Pinned via API ||
This commit is contained in:
@ -29,16 +29,17 @@ public class PinController : Controller, IPinController<IActionResult>
|
||||
if (was is not null)
|
||||
_Logger.LogDebug($"{toolTypeId} was: {was}");
|
||||
HttpContext.Session.SetString(toolTypeId, json);
|
||||
_PinRepository.SetPinnedTable(headerCommon);
|
||||
return Ok();
|
||||
}
|
||||
|
||||
[HttpGet]
|
||||
[Route("{id}/pinned")]
|
||||
public IActionResult GetPinnedTable(int id)
|
||||
[Route("{id}/pinned/{rds}")]
|
||||
public IActionResult GetPinnedTable(int id, string rds = "")
|
||||
{
|
||||
string? cde = HttpContext.Session.GetString(((int)IPinRepository.ToolId.CDE).ToString());
|
||||
string? bioRad = HttpContext.Session.GetString(((int)IPinRepository.ToolId.BioRad).ToString());
|
||||
return Json(_PinRepository.GetPinnedTable(_MetrologyRepository, id, bioRad, cde), new JsonSerializerOptions { PropertyNamingPolicy = null, WriteIndented = true });
|
||||
return Json(_PinRepository.GetPinnedTable(_MetrologyRepository, id, rds, bioRad, cde), new JsonSerializerOptions { PropertyNamingPolicy = null, WriteIndented = true });
|
||||
}
|
||||
|
||||
}
|
Reference in New Issue
Block a user