public ScheduleDAO GetSchedule(int cid, int pid) { var schedule = db.GetSchedule(cid, pid); var s = ScheduleMapper.MapToScheduleDAO(schedule); return(s); }
public List <ScheduleDAO> GetSchedules() { var s = new List <ScheduleDAO>(); foreach (var schedule in db.GetSchedules()) { s.Add(ScheduleMapper.MapToScheduleDAO(schedule)); } return(s); }