public IEnumerable <GameDto> GetGamesByPlatformType(string type) { var pipeline = new Pipeline <Game>(); pipeline.Register(_filterFactory.MakeGamesByPlatformTypeFilter(type)); return(UnitOfWork.Games.Find(pipeline) .Select(g => g.ToDto())); }
public IEnumerable <GameDto> GetGamesByPlatformType(string type) { var pipeline = new Pipeline <Game>(); pipeline.Register(_filterFactory.MakeGamesByPlatformTypeFilter(type)); return(UnitOfWork.Games.Find(pipeline) .Select(g => g.ToDto())); }