Ejemplo n.º 1
0
        protected void cfmActivate_Click(object sender, EventArgs e)
        {
            Course_elearnDAO ceDAO         = new Course_elearnDAO();
            Course_elearn    currentCourse = ceDAO.get_course_by_id(Convert.ToInt32(Request.QueryString["id"]));

            ceDAO.activateCourse(Convert.ToInt32(Request.QueryString["id"]));
            int cat = currentCourse.getCategoryID();

            //set audit
            User currentUser = (User)Session["currentUser"];

            setAudit(currentUser, "course", "activate", currentCourse.getCourseID().ToString(), "course name: " + currentCourse.getCourseName());

            Response.Redirect($"viewAllModule.aspx");
        }