public async Task <IActionResult> Edit(TransactionActionViewModel model) { if (ModelState.IsValid) { var transactionDto = new TransactionsDto { Id = model.Id, Description = model.Description, Comment = model.Comment, Amount = model.Amount }; await _transactionsService.EditAsync(transactionDto); return(RedirectToAction("Index", "Transaction", new { id = transactionDto.Id })); } return(View(model)); }