public async Task <ActionResult <InvoiceLineApiModel> > Get(int id, CancellationToken ct = default) { try { var invoiceLine = await _BlazorSupervisor.GetInvoiceLineByIdAsync(id, ct); if (invoiceLine == null) { return(NotFound()); } return(Ok(invoiceLine)); } catch (Exception ex) { return(StatusCode(500, ex)); } }