Ejemplo n.º 1
0
        public async Task <IActionResult> CreateInvoice([FromRoute] Guid organizationId, [FromBody] InvoiceInput input)
        {
            var invoice =
                await _invoiceService.CreateInvoice(_agencyOwner, input);

            return(Ok(invoice));
        }
Ejemplo n.º 2
0
        public async Task <IActionResult> GenerateInvoice([FromRoute] Guid organizationId, [FromQuery] Guid projectId,
                                                          [FromBody] InvoiceInput input)
        {
            var invoice =
                await _invoiceService.CreateInvoice(_accountManager, input);

            return(Ok(invoice));
        }