public async Task <IActionResult> AddPaymentMethod(AddPaymentMethodCommand command)
        {
            var id = await Mediator.Send(command);

            return(Ok(id));
        }
Exemple #2
0
        public async Task <IActionResult> CreatePaymentMethod(AddPaymentMethodCommand command)
        {
            await mediatrHandler.PublishCommandAsync(command);

            return(Result());
        }
Exemple #3
0
 public async Task AddPaymentMethod(int customerId, [FromBody] AddPaymentMethodCommand command)
 {
     command.SetId(customerId);
     await Mediator.Send(command);
 }