public ActionResult CourseDelete(int CourseId)
        {
            CourseServices services = new CourseServices();
            CourseModel    model    = new CourseModel();

            model = services.GetCourse(CourseId);
            return(View(model));
        }
        public ActionResult ManageTasks(int CourseId)
        {
            CourseServices service = new CourseServices();
            CourseModel    model   = new CourseModel();

            model       = service.GetCourse(CourseId);
            model.Tasks = service.GetTasks(CourseId);
            return(View(model.Tasks));
        }
예제 #3
0
 public IHttpActionResult GetCourses(int?courseid = null, int?status = null, int?coursecategoryid = null, string coursecategorydescription = "")
 {
     try
     {
         var result = oSvc.GetCourse(courseid, status, coursecategoryid, coursecategorydescription);
         return(Ok(result));
     }
     catch (Exception ex)
     {
         ExceptionModel oExc = oException.Set(ex);
         return(Ok(oExc));
     }
 }