Frequently Used Methods
Frequently Used Methods
Frequently Used Methods
Frequently Used Methods
public IActionResult GetLineItemsByInvoiceId(int invoiceId) { var lineItem = _repository.GetLineItemsByInvoiceId(invoiceId); var noLineItem = !lineItem.Any(); if (noLineItem) { return(NotFound("There are no line items to be found")); } return(Ok(lineItem)); }