public SavePaymentCommand(SavePaymentModel payment) { Payment = payment; }
public async Task <IActionResult> SavePayment([FromBody] SavePaymentModel payment) { var result = await _mediator.Send(new SavePaymentCommand(payment)); return(Ok(result)); }
public SavePaymentCommand(SavePaymentModel payment) { Payment = payment; }
public async Task <IActionResult> SavePayment([FromBody] SavePaymentModel payment) { var result = await _mediator.Send(new SavePaymentCommand(payment)); return(Ok(result)); }