Beispiel #1
0
        public MoodleCourse getCourse(string shortname)
        {
            MoodleCourse  mcourse = new MoodleCourse();
            UniverCourses courses = new UniverCourses();

            try
            {
                mcourse.id   = courses.getID(shortname);
                mcourse.name = shortname;
            }
            catch (System.Exception oe)
            {
                throw new Exception(string.Format("No existe el curso: {0}. {1}", shortname, oe.Message.ToString()));
            }

            return(mcourse);
        }
Beispiel #2
0
        public MoodleCourse getCourse(string shortname)
        {
            MoodleCourse mcourse  = new MoodleCourse();
            UniverCourses courses = new UniverCourses();

            try
            {
                mcourse.id = courses.getID(shortname);
                mcourse.name = shortname;
            }
            catch (System.Exception oe)
            {
                throw new Exception(string.Format("No existe el curso: {0}. {1}", shortname, oe.Message.ToString()));
            }

            return mcourse;
        }