public getCourseContent getCourseContent(int courseid) { try { getCourseContent Response = _repository.getCourseContent(courseid); return(Response); } catch (Exception ex) { throw; } }
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())); } }