Example #1
0
        public JsonResult SearchSchools(int districtId, string keywords)
        {
            List <T_School> sl = B_BaseRedis.GetSchools(districtId);

            if (!string.IsNullOrEmpty(keywords))
            {
                if (sl != null)
                {
                    sl = sl.FindAll(a => a.SchoolName.Contains(keywords));
                }
            }
            return(Json(sl));
        }