public async Task <IActionResult> EditTransaction(int id, Statuses?status)
        {
            EditTransactionCommand command = new EditTransactionCommand();

            command.TransactionId = id;
            command.Status        = status;
            var result = await _mediator.Send(command);

            return(Redirect(GetTransactionsUrl));
        }
Exemple #2
0
 public async Task <IActionResult> Edit([FromHybrid] EditTransactionCommand command)
 {
     return(await Execute(command));
 }
Exemple #3
0
 public async Task <ActionResult <Unit> > EditTransaction(int id, EditTransactionCommand command)
 {
     command.Id = id;
     return(await Mediator.Send(command));
 }