I\'m trying to filter some records using the following code:
return base.CreateFilteredQuery(input) .WhereIf(input.OrganisationUnitId > 0, t =>