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

            if (rowAffected2 > 0 && rowAffected > 0)
            {
                return("Unassign Courses Successfully");
            }
            else
            {
                return("Failed");
            }
        }
Example #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");
                }
            }
        }
Example #3
0
 public EnrollCourseManager()
 {
     aEnrollCourseGateway = new EnrollCourseGateway();
 }
Example #4
0
 public int GetEnrollId(StudentResult studentResult)
 {
     return(EnrollCourseGateway.GetEnrollId(studentResult));
 }
Example #5
0
 public List <int> GetCourseIdsByStudentId(int studentId)
 {
     return(EnrollCourseGateway.GetCourseIdsByStudentId(studentId));
 }
Example #6
0
 public EnrollCourseManager()
 {
     EnrollCourseGateway = new EnrollCourseGateway();
     StudentGateway      = new StudentGateway();
 }
Example #7
0
 public EnrollCoursesManager()//Constructor
 {
     enrollCourseGateway = new EnrollCourseGateway();
 }
Example #8
0
 public EnrollCourseManager()
 {
     _courseGateway = new CourseGateway();
     aStudentRegistrationGateway = new StudentRegistrationGateway();
     aEnrollCourseGateway        = new EnrollCourseGateway();
 }