Ejemplo n.º 1
0
        public static int findCrn(string courseName, string semester)
        {
            CourseDAL courseDal = new CourseDAL();
            var       crn       = -1;

            var courses = courseDal.GetCoursesByTeacherAndSemester(TeacherID, semester);

            foreach (var course in courses)
            {
                if (course.Name.Equals(courseName))
                {
                    crn = course.CRN;
                }
            }

            return(crn);
        }