// GET: Admin/Statistic public ActionResult Index(int id = 2018) { StatisticDAO dao = new StatisticDAO(); ViewBag.Year = id; ViewBag.Month = dao.statisticGroupByMonth(id); ViewBag.List = new List <decimal>() { dao.getTotalPriceBillByYear(id - 1), dao.getTotalPriceBillByYear(id), dao.getTotalPriceBillByYear(id + 1) }; return(View()); }
public StatisticBus() { statisticDao = new StatisticDAO(); dbContext = new DataClassesDataContext(); }