public ActionResult GetPersonnelsBySearchValue(string searchValue) { List <Personnel> personnels = _personnelService.GetPersonnelsBySearchValue(searchValue); //return new JsonResult { Data = personnels, JsonRequestBehavior = JsonRequestBehavior.AllowGet }; var personnelsJSON = GeneralExtensions.SerializeJSON(personnels); return(Content(personnelsJSON, "application/json")); }