Пример #1
0
        public void GetLiveTimeTables()
        {
            var criteria = new SearchCriteria <TimeTableDTO>();

            TimeTableList = _timeTableService.GetAll(criteria).OrderBy(i => i.Id).ToList();
            TimeTables    = new ObservableCollection <TimeTableDTO>(TimeTableList);
        }
Пример #2
0
        public async Task <ActionResult <IEnumerable <TimeTableResponse> > > GetAll()
        {
            var timeTables = await _timeTableService.GetAll();

            return(Ok(timeTables));
        }