Exemplo n.º 1
0
        public Boolean DeleteCourse(BlackBoardCourse course)
        {
            int id = course.courseID;

            try
            {
                newStoredProcedure.DeleteCourse(id);
                return(true);
            }
            catch
            {
                return(false);
            }
        }
Exemplo n.º 2
0
        public Boolean AddCourse(BlackBoardCourse course)
        {
            int    id          = course.courseID;
            string name        = course.courseName;
            string description = course.courseDescription;
            int    credits     = course.courseCredit;

            try
            {
                newStoredProcedure.AddNewCourse(id, name, description, credits);
                return(true);
            }
            catch
            {
                return(false);
            }
        }