Maybe you should ask that question in a MS SQL Server development forum.
Not sure that MS SQL supports parameters for views - that's rather SAP HANA specific.
Usually you would go and simply put the selection criteria in your WHERE condition.
What you can do however is something similar: create a user defined function that returns a table.
Anyhow, as said above: better ask someone who knows MS SQL Server development.