public JsonResult GetPersonWithJson() { var sa = new JsonSerializerSettings(); IEnumerable <Person> IPerson = _repository.GetAllPerson(); return(new JsonResult(IPerson, sa)); }