Example #1
0
        public ActionResult Index()
        {
            ViewBag.CurrencyList = CurrencyTools.GetCurrencyList().ConvertSelectListItems();

            MainPageOutputModel model = new MainPageOutputModel
            {
                Categories   = _service.GetAllCategories().Select(x => x.MapToCategoryOutputModel()),
                Wallets      = _service.GetAllWallets().Select(x => x.MapToWalletOutputModel()),
                Incomes      = _service.GetAllIncomes().Select(x => x.MapToIncomeOutputModel()),
                Transactions = _service.GetAllTransactions().Select(x => x.MapToTransactionOutputModel())
            };

            return(View(model));
        }
Example #2
0
 public ActionResult GetCurrencyList()
 {
     return(Json(CurrencyTools.GetCurrencyList().ConvertSelectListItems()));
 }