Exemple #1
0
        public ScheduleDAO GetSchedule(int cid, int pid)
        {
            var schedule = db.GetSchedule(cid, pid);
            var s        = ScheduleMapper.MapToScheduleDAO(schedule);

            return(s);
        }
Exemple #2
0
        public List <ScheduleDAO> GetSchedules()
        {
            var s = new List <ScheduleDAO>();

            foreach (var schedule in db.GetSchedules())
            {
                s.Add(ScheduleMapper.MapToScheduleDAO(schedule));
            }

            return(s);
        }