Esempio n. 1
0
        public async Task DeletePaymentMethod(int customerId, int id, [FromBody] DeletePaymentMethodCommand command)
        {
            command.SetId(customerId);
            command.PaymentMethodId = id;

            await Mediator.Send(command);
        }
        public async Task <IActionResult> DeletePaymentMethod(DeletePaymentMethodCommand command)
        {
            await Mediator.Send(command);

            return(Ok());
        }