public ActionResult FindPerson(string pattern) { return(Json(_personsService.FindPerson(pattern).Select(m => new { ID = m.ID, FirstName = m.FirstName, Lastname = m.Lastname, PIN = m.PIN, DateOfBirth = m.DateOfBirth.ToString("yyyy/MM/dd"), Address = m.Address }).ToList(), JsonRequestBehavior.AllowGet)); }