Beispiel #1
0
        // GET: ViewKQs
        public ActionResult Index()
        {
            StatisticMainModel model = new StatisticMainModel();
            var list = context.ListAll();

            model.listKQ = list;
            return(View(model));
        }
Beispiel #2
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));
        }