Exemplo n.º 1
0
 public override async Task <List <Board> > FindAll(RepoQuery <Board> q, string tag = "")
 {
     return(await _context.Boards
            .TagWith(tag)
            .Include(x => x.Cards)
            .Where(q.Predicate)
            .OrderBy(q.OrderAscending)
            .Skip(q.Skip)
            .Take(q.Take)
            .ToListAsync());
 }
Exemplo n.º 2
0
 private static IObservable <RepoResponse> GetRepo(RepoQuery query)
 {
     Console.WriteLine("Got RepoQuery({0}), Id = {1}", query.User.Name, query.Id);
     return(_githubBrowser.GetRepos(query.User)
            .Select(r => new RepoResponse(query.Id, r.ToList())));
 }