Exemple #1
0
        public IActionResult DeleteInvoiceAndLineItems(int invoiceId)
        {
            if (_lineItemRepository.GetByInvoiceId(invoiceId) == null)
            {
                return(NotFound("No invoice found with that id"));
            }

            _repo.DeleteInvoiceWithLineItems(invoiceId);

            return(Ok());
        }