예제 #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);
        }
예제 #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));
        }