コード例 #1
0
        public IActionResult CompleteInvoice(Invoice invoice)
        {
            if (_repo.GetById(invoice.InvoiceId) == null)
            {
                return(NotFound("No invoice with that id found."));
            }

            _repo.Complete(invoice);

            return(Ok());
        }