Exemplo n.º 1
0
        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"));
        }