public JsonResult GetProjectById(int id) { var rep = new ProjectRepository(); var project = rep.GetProject(id); return this.Json(project, JsonRequestBehavior.AllowGet); }