public List<Enrollment> GetStudentEnrolledSchedulesByQuarter(string studentId, string year, string quarter) { var errors = new List<string>(); var repository = new EnrollmentRepository(this.entities); var service = new EnrollmentService(repository); return service.GetStudentEnrolledSchedulesByQuarter(studentId, year, quarter, ref errors); }
public Enrollment GetEnrollmentDetail(string studentId, int scheduleId) { var errors = new List<string>(); var repository = new EnrollmentRepository(this.entities); var service = new EnrollmentService(repository); return service.GetEnrollmentDetail(studentId, scheduleId, ref errors); }
public List<Enrollment> GetAllStudentEnrolledSchedules(string studentId) { var errors = new List<string>(); var repository = new EnrollmentRepository(this.entities); var service = new EnrollmentService(repository); return service.GetAllStudentEnrolledSchedules(studentId, ref errors); }
public string AddEnrollment(Enrollment enrollment) { var errors = new List<string>(); var repository = new EnrollmentRepository(this.entities); var service = new EnrollmentService(repository); service.AddEnrollment(enrollment.StudentId, enrollment.ScheduleId, ref errors); if (errors.Count == 0) { return "ok"; } return "error"; }
public List<Student> GetStudentsByScheduleId(int scheduleId) { var errors = new List<string>(); var repository = new EnrollmentRepository(this.entities); var service = new EnrollmentService(repository); return service.GetStudentsByScheduleId(scheduleId, ref errors); }
public string UpdateEnrollment(Enrollment er) { var errors = new List<string>(); var repository = new EnrollmentRepository(this.entities); var service = new EnrollmentService(repository); service.UpdateEnrollment(er, ref errors); if (errors.Count == 0) { return "ok"; } return "error"; }