コード例 #1
0
 public getCourseContent getCourseContent(int courseid)
 {
     try
     {
         getCourseContent Response = _repository.getCourseContent(courseid);
         return(Response);
     }
     catch (Exception ex)
     {
         throw;
     }
 }
コード例 #2
0
 public HttpResponseMessage getCourseContent(int courseid)
 {
     try
     {
         getCourseContent response = new getCourseContent();
         response = _business.getCourseContent(courseid);
         return(Request.CreateResponse(HttpStatusCode.OK, response));
     }
     catch (Exception ex)
     {
         return(Request.CreateErrorResponse(HttpStatusCode.InternalServerError, ex.Message.ToString()));
     }
 }