Esempio n. 1
0
        public ActionResult AccountBookList()
        {
            //List<AccountBookViewModel> moneyList = MoneyListFactory.GetMoneyList();
            var accountBookList = _accountbookService.GetAll().Take(50);

            return(View(accountBookList));
        }
Esempio n. 2
0
        //[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()));
        }