public ActionResult CourseDelete(CourseModel model)
 {
     CourseServices services = new CourseServices();
     model.Tasks = services.GetTasks(model.CourseId);
     services.CourseDelete(model);
     return RedirectToAction("Index", "Teacher");
 }
 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);
 }
 public ActionResult TaskList(int CourseId)
 {
     CourseServices cs = new CourseServices();
     List<TaskModel> tasks = cs.GetTasks(CourseId);
     return View(tasks);
 }