コード例 #1
0
 public static HeldInvoiceCreationDomain ToDomain(this HeldInvoiceCreationRequest input)
 {
     return(_mapper.Map <HeldInvoiceCreationDomain>(input));
 }
コード例 #2
0
        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));
        }