Esempio n. 1
0
        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);
        }
Esempio n. 3
0
        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));
        }