Пример #1
0
        public ActionResult ProgramActiveCalendarSearch(string term, string searchType)
        {
            using (var dt = CRCDataAccess.ProgramActiveCalendarSearch(term, searchType, "N"))
            {
                var searchResults =
                    from DataRow dr in dt.Rows
                    select new
                {
                    value = dr["ProgramId"],
                    label = dr["ProgramName"]
                };

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