private ActionResult RemoveCourse(Course model)
        {
            if (!loggedIn())
            {
                return(RedirectToAction("Index", "Login", new { redirectAction = "CourseDetail", redirectController = "Course", courseID = model.ID }));
            }
            if (!checkPermission("admin"))
            {
                return(RedirectToAction("AccessDenied", "Home"));
            }
            bool success = proxy.deleteCourse(model.ID);

            return(RedirectToAction("CourseList"));
        }