public string UnAssignCourses()
        {
            int rowAffected  = _courseAssignGateway.UnAssignCourses();
            int rowAffected2 = new EnrollCourseGateway().DisEnrollCourses();

            if (rowAffected2 > 0 && rowAffected > 0)
            {
                return("Unassign Courses Successfully");
            }
            else
            {
                return("Failed");
            }
        }
Esempio n. 2
0
        public string Save(EnrollCourse enrollCourse)
        {
            if (EnrollCourseGateway.IsCourseEnrolled(enrollCourse))
            {
                return("Course Is Already Enrolled.");
            }
            else
            {
                int rowAffect = EnrollCourseGateway.Save(enrollCourse);

                if (rowAffect > 0)
                {
                    return("Successfully Enroll");
                }
                else
                {
                    return("Enroll Failed");
                }
            }
        }
Esempio n. 3
0
 public EnrollCourseManager()
 {
     aEnrollCourseGateway = new EnrollCourseGateway();
 }
Esempio n. 4
0
 public int GetEnrollId(StudentResult studentResult)
 {
     return(EnrollCourseGateway.GetEnrollId(studentResult));
 }
Esempio n. 5
0
 public List <int> GetCourseIdsByStudentId(int studentId)
 {
     return(EnrollCourseGateway.GetCourseIdsByStudentId(studentId));
 }
Esempio n. 6
0
 public EnrollCourseManager()
 {
     EnrollCourseGateway = new EnrollCourseGateway();
     StudentGateway      = new StudentGateway();
 }
Esempio n. 7
0
 public EnrollCoursesManager()//Constructor
 {
     enrollCourseGateway = new EnrollCourseGateway();
 }
Esempio n. 8
0
 public EnrollCourseManager()
 {
     _courseGateway = new CourseGateway();
     aStudentRegistrationGateway = new StudentRegistrationGateway();
     aEnrollCourseGateway        = new EnrollCourseGateway();
 }