public HttpResponseMessage GetEducation(int id) { HttpResponseMessage response = new HttpResponseMessage(HttpStatusCode.OK); response.Content = new ObjectContent <Education>(_educationBLL.GetEducation(id), new JsonMediaTypeFormatter()); return(response); }
public ActionResult Education(string id) { EducationBLL _educationBLL = new EducationBLL(); Gradera.Education.Entities.Education education = _educationBLL.GetEducation(id); return(View(education)); }