public IEnumerable <PageRoute> Execute(GetPageRoutesByWebDirectoryIdQuery query, IExecutionContext executionContext) { var result = _queryExecutor .GetAll <PageRoute>(executionContext) .Where(p => p.WebDirectory.WebDirectoryId == query.WebDirectoryId); return(result); }
public IEnumerable <IPermissionApplication> GetPermissions(GetPageRoutesByWebDirectoryIdQuery query) { yield return(new PageReadPermission()); }