Passing the where parameters by the function - C#