public ActionResult DeleteCourse(int id)
        {
            DeleteCourseVM viewModel = new DeleteCourseVM();

            viewModel.currentCourse = CourseRepository.Get(id);
            return(View(viewModel));
        }
 public ActionResult DeleteCourse(DeleteCourseVM viewModel)
 {
     CourseRepository.Delete(viewModel.currentCourse.CourseId);
     return(RedirectToAction("Courses"));
 }