예제 #1
0
        public HttpResponseMessage GetEducation(int id)
        {
            HttpResponseMessage response = new HttpResponseMessage(HttpStatusCode.OK);

            response.Content = new ObjectContent <Education>(_educationBLL.GetEducation(id), new JsonMediaTypeFormatter());

            return(response);
        }
예제 #2
0
        public ActionResult Education(string id)
        {
            EducationBLL _educationBLL = new EducationBLL();

            Gradera.Education.Entities.Education education = _educationBLL.GetEducation(id);

            return(View(education));
        }