public IEnumerable <Orientation> GetAllOrientations() { IEnumerable <Orientation> orientations = orientationRepository.GetAll() .ToList(); return(orientations); }
public GamePointerService() { var repo = new WatchedExecutionRepository(new UwpDbPath()); _repo = repo; _addRepo = repo; _updateRepo = repo; _deleteRepo = repo; _watcher.ApplicationFocusChanged += ApplicationFocusWatcher_ApplicationFocusChanged; _watchedExecutions = new ObservableCollection <WatchedExecution>(_repo.GetAll()); }
public IEnumerable <Attendee> GetAll() { return(repository.GetAll()); }
public IEnumerable <T> GetAll() { return(repository.GetAll()); }
private bool SaveToFile <T>(IGetAllRepository <T> entities) where T : IEntity { var data = JsonConvert.SerializeObject(entities.GetAll()); return(_dataFileProvider.UpdateFileText(typeof(T).Name, data)); }