コード例 #1
0
 public SavePaymentCommand(SavePaymentModel payment)
 {
     Payment = payment;
 }
コード例 #2
0
        public async Task <IActionResult> SavePayment([FromBody] SavePaymentModel payment)
        {
            var result = await _mediator.Send(new SavePaymentCommand(payment));

            return(Ok(result));
        }