public JsonResult GetSkillSetList(string name) { IEnumerable <SelectListItem> skillsetList = SkillSet.GetList(name); return(Json(new { iTotalRecords = skillsetList.Count(), iTotalDisplayRecords = skillsetList.Count(), aaData = skillsetList }, JsonRequestBehavior.AllowGet)); }