public static HeldInvoiceCreationDomain ToDomain(this HeldInvoiceCreationRequest input) { return(_mapper.Map <HeldInvoiceCreationDomain>(input)); }
public async Task <ActionResult <HeldInvoiceFlatResponse> > HoldInvoice([FromServices] IHoldInvoiceUseCase useCase, [FromBody] HeldInvoiceCreationRequest heldInvoiceCreationRequest, Guid payRunId, Guid payRunInvoiceId) { var res = await useCase.ExecuteAsync(payRunId, payRunInvoiceId, heldInvoiceCreationRequest.ToDomain()); return(Ok(res)); }