public ActionResult Money() { var data = _accountBookService.GetAllAccountBooks(); var ListMoneyViewModel = from d in data select new MoneyViewModel { 類別 = (CategoryEnum)d.Categoryyy, 時間 = d.Dateee, 金錢 = d.Amounttt, 備註 = d.Remarkkk }; return(View(ListMoneyViewModel)); }
// GET: admin/AccountBooks public ActionResult Index() { return(View(_service.GetAllAccountBooks())); }