public async Task <IActionResult> AddPaymentMethod(AddPaymentMethodCommand command) { var id = await Mediator.Send(command); return(Ok(id)); }
public async Task <IActionResult> CreatePaymentMethod(AddPaymentMethodCommand command) { await mediatrHandler.PublishCommandAsync(command); return(Result()); }
public async Task AddPaymentMethod(int customerId, [FromBody] AddPaymentMethodCommand command) { command.SetId(customerId); await Mediator.Send(command); }