Exemplo n.º 1
0
        // 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());
        }
Exemplo n.º 2
0
 public StatisticBus()
 {
     statisticDao = new StatisticDAO();
     dbContext    = new DataClassesDataContext();
 }