public TutoringTime GetExactTutoringTime(DateTime date, string time, int teacherId)
        {
            TutoringTimeCtrl ttCtrl = new TutoringTimeCtrl();

            return ttCtrl.GetExactTutoringTime(date, time, teacherId);
        }
        //All the methods that deal with TutoringTime objects
        public int CreateTutoringTime(DateTime date, string time, int teacherId)
        {
            TutoringTimeCtrl ttCtrl = new TutoringTimeCtrl();

            return ttCtrl.CreateTutoringTime(date, time, teacherId);
        }
        public List<TutoringTime> GetAllTutoringTimesByTeacher(int teacherId)
        {
            TutoringTimeCtrl ttCtrl = new TutoringTimeCtrl();

            return ttCtrl.GetAllTutoringTimesByTeacher(teacherId);
        }
        public int RegisterBooking(int ttId, int childId)
        {
            TutoringTimeCtrl ttCtrl = new TutoringTimeCtrl();

            return ttCtrl.RegisterBooking(ttId, childId);
        }
Пример #5
0
        public List<TutoringTime> GetTtTimesByDate(DateTime date)
        {
            TutoringTimeCtrl ttCtrl = new TutoringTimeCtrl();

            return ttCtrl.GetTtTimesByDate(date);
        }
Пример #6
0
 public List<TutoringTime> GetAllAvailableTutoringTimesBySubject(string subject)
 {
     TutoringTimeCtrl ttCtrl = new TutoringTimeCtrl();
     return ttCtrl.GetAllAvailableTutoringTimesBySubject(subject);
 }
Пример #7
0
 public List<TutoringTime> GetAllAvailableTutoringTimes()
 {
     TutoringTimeCtrl ttCtrl = new TutoringTimeCtrl();
     return ttCtrl.GetAllAvailableTutoringTimes();
 }
Пример #8
0
        public int RemoveTutoringTime(int teacherId, DateTime date, string time)
        {
            TutoringTimeCtrl ttCtrl = new TutoringTimeCtrl();

            return ttCtrl.RemoveTutoringTime(teacherId, date, time);
        }