public Task <IEnumerable <TreeDisplayItem> > GetTrees(TreesQuery query) { return(_mediator.Process(query)); }
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 })); }