コード例 #1
0
        public ActionResult EditScheduledTransaction(int id)
        {
            var context = _transactionLogic.GetScheduledTransactionById(id);
            var model   = new TransactionsViewModel(context.TransactionId, context.AccountId, context.TransactionName, context.TransactionAmount, context.Category, context.IconId, context.TimeOfTransaction, _fileProvider.GetDirectoryContents("wwwroot/Icons/Category").ToList().Select(icon => icon.Name).ToList());

            return(View("EditScheduledTransactionPartial", model));
        }