title: How can i send filter to linq expression?
body: <p>I have a mothod like that on Dataaccsess layer.
  Is there any way to send two filter to linq expression like code highlighted with double asterisks?</p>
  
  <pre><code> public TEntity get(Expression&lt;Func&lt;TEntity, bool&gt;&gt; filter)
      {
          using (TContext context=new TContext())
          {
              return context.Set&lt;TEntity&gt;().SingleOrDefault(filter);
          }
      }
  
  
  public void control(string username,string username)
  {
     UserDal.get(**u=&gt;u.username==username&amp;&amp;u=&gt;u.password==password**);
      //enter code`enter code here` here
  }
  </code></pre>