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