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