示例#1
0
 /// <summary>
 /// Gets all the schedules
 /// </summary>
 /// <exception cref="ScheduleManagerException">Thorwn when unable to get the schedules from the database</exception>
 /// <returns>Returns the list of schedules></returns>
 public List <Schedule> GetSchedules()
 {
     try
     {
         return(scheduleDAO.GetSchedules());
     }
     catch (ScheduleDAOException ex)
     {
         throw new ScheduleManagerException("Unable to get schedule", ex);
     }
 }
示例#2
0
        /// <summary>
        /// Gets all the schedules
        /// </summary>
        /// <exception cref="ScheduleManagerException">Thorwn when unable to get the schedules from the database</exception>
        /// <returns>Returns the list of schedules></returns>
        public Schedule[] GetSchedules()
        {
            Schedule[] schedules = null;
            try
            {
                schedules = scheduleDAO.GetSchedules();

                SortSchedules(schedules);

                return(schedules);
            }
            catch (ScheduleDAOException ex)
            {
                throw new ScheduleManagerException("Unable to get schedule", ex);
            }
        }