DataGrid filtered by Parameter only if it is not null

Hello,
I have a page using a datagrid and each row open another page using aparameter eg. OperatorID, in new page I can filter by query the data by the parameter, but if the parameter is empty or not present I need to return all rows.
I'm trying to do this but I have some problems using expression.
Can someone help me writing a sample code?

Thank you

This thread might help you:

Here is the actual code:

Thank you all works great