public void GetLiveTimeTables() { var criteria = new SearchCriteria <TimeTableDTO>(); TimeTableList = _timeTableService.GetAll(criteria).OrderBy(i => i.Id).ToList(); TimeTables = new ObservableCollection <TimeTableDTO>(TimeTableList); }
public async Task <ActionResult <IEnumerable <TimeTableResponse> > > GetAll() { var timeTables = await _timeTableService.GetAll(); return(Ok(timeTables)); }