public SixReactiveDisposableList <GameDataModel> Handle(ListGamesQuery query) { var items = _context.Games.OrderBy(x => x.MetaData.ReleasedOn); var mappedList = _gameMapper.Map <SixReactiveDisposableList <GameDataModel> >(items); SetupObservable(items, mappedList); return(mappedList); }
public Task <List <string> > HandleAsync(ListGamesQuery query) { var result = Directory.EnumerateDirectories(TickTackToeConstants.GamesPath) .Select(path => new DirectoryInfo(path).Name) .ToList(); return(Task.FromResult(result)); }