Ejemplo n.º 1
0
 public Task <IEnumerable <TreeDisplayItem> > GetTrees(TreesQuery query)
 {
     return(_mediator.Process(query));
 }
Ejemplo n.º 2
0
 public override async Task <IEnumerable <TreeDisplayItem> > Handle(TreesQuery query)
 {
     return(await _dbConnection.QueryAsync <TreeDisplayItem>(@"EXECUTE spFaGetTreeFallNavigator
         @UserId, @Active, @Closed, @Archived, @IncludeGroup, @IncludeGuest, @IncludeTasks",
                                                             new { UserId = (int)_userId, query.Active, query.Closed, query.Archived, query.IncludeGroup, query.IncludeGuest, query.IncludeTasks }));
 }