public ActionResult GetPerson(int id) { var data = _personsService.GetPersonByID(id); return(Json(new { FirstName = data.FirstName, Lastname = data.Lastname, PIN = data.PIN, DateOfBirth = data.DateOfBirth.ToString("yyyy-MM-dd"), Addresss = data.Address }, JsonRequestBehavior.AllowGet)); }