Beispiel #1
0
 public IQueryable <Todo> GetTodos(bool?completed, [Service] IAllTodosQuery allTodosQuery)
 {
     return(allTodosQuery.AllTodos()
            .Where(x => completed == null || x.Completed == completed)
            .AsQueryable()
            .OrderBy(x => x.Completed));
 }
Beispiel #2
0
 public IQueryable <Todo> GetCompletedTodos([Service] IAllTodosQuery allTodosQuery)
 {
     return(GetTodos(true, allTodosQuery));
 }