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());
        }
Example #3
0
 public IEnumerable <Attendee> GetAll()
 {
     return(repository.GetAll());
 }
Example #4
0
 public IEnumerable <T> GetAll()
 {
     return(repository.GetAll());
 }
Example #5
0
        private bool SaveToFile <T>(IGetAllRepository <T> entities) where T : IEntity
        {
            var data = JsonConvert.SerializeObject(entities.GetAll());

            return(_dataFileProvider.UpdateFileText(typeof(T).Name, data));
        }