Exemple #1
0
        public ActionResult Index(StatisticMainModel model)
        {
            int month = model.month;
            var list  = new List <ViewKQ>();

            if (month == 0)
            {
                list = context.ListAll();
            }
            else
            {
                list = context.List_Month(month);
            }
            model.listKQ = list;
            return(View(model));
        }