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)); }
public async Task <IActionResult> Edit([FromHybrid] EditTransactionCommand command) { return(await Execute(command)); }
public async Task <ActionResult <Unit> > EditTransaction(int id, EditTransactionCommand command) { command.Id = id; return(await Mediator.Send(command)); }