コード例 #1
0
        public ActionResult AccountBookList()
        {
            //List<AccountBookViewModel> moneyList = MoneyListFactory.GetMoneyList();
            var accountBookList = _accountbookService.GetAll().Take(50);

            return(View(accountBookList));
        }
コード例 #2
0
ファイル: HomeController.cs プロジェクト: lynnlee19/finance
        //[ChildActionOnly]
        public ActionResult List()
        {
            //var faker = new Faker("zh_TW");
            //var journals = new List<JournalViewModel>();
            //for (int i = 0; i < 20; i++)
            //{
            //    journals.Add(new JournalViewModel
            //    {
            //        TxnDate = faker.Date.Past(),
            //        TxnType = (EnumTxnType) faker.Random.Number(min: 1, max: 2),
            //        TxnAmt = faker.Finance.Amount(min: 1, max: 5000)
            //    });
            //}

            //journals.Sort();

            //var journals = dao.GetAllAccountBooks();

            //return View(journals);

            return(View(_AccountBookService.GetAll()));
        }