Exemple #1
0
        public ActionResult Read(string Year, string Month)
        {
            //string stringDateFilter = Year.ToString() + "/" + Month.ToString("D2");
            var stringDateFilter = Year + "/" + Month;
            //StsContext db = new StsContext();
            //db.Configuration.ProxyCreationEnabled = false;
            //var a = db.TimeTables.Where(r => r.Date.StartsWith(stringDateFilter));
            var a = _timeTableService.GetAllinMonth(stringDateFilter).MapModelToViewModel();

            return(Json(a, JsonRequestBehavior.AllowGet));
        }