public async Task <ActionResult> Index(Guid id) { var transactions = await mediator.SendAsync(new GetExportNotificationTransactions(id)); var model = new DeleteTransactionViewModel(id, transactions); return(View(model)); }
public async Task<ActionResult> Index(Guid id) { var transactions = await mediator.SendAsync(new GetImportNotificationTransactions(id)); var model = new DeleteTransactionViewModel(id, transactions); return View(model); }
public PartialViewResult DeleteTransactionModal(int id) { var transaction = _manager.GetTransaction(id); var model = new DeleteTransactionViewModel { Id = transaction.Id, Description = transaction.Description, Amount = transaction.Amount }; return(PartialView(model)); }