Exemple #1
0
        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));
            }
        }