title: Html Extension two properties from model with lambda
body: <p>I need to call an HTML helper passing two properties from the model. The problem is when i try this:</p>
  
  <pre><code> @Html.BsDropDownFor(x =&gt; x.Type.Id, x =&gt; x.Type.Descripcion, (IEnumerable&lt;TextValue&gt;)ViewBag.ClaseB)
  </code></pre>
  
  <p>the header method is defined like this:</p>
  
  <pre><code>  public static MvcHtmlString BsDropDownFor&lt;TModel&gt;(this HtmlHelper&lt;TModel&gt; htmlHelper,
        Expression&lt;Func&lt;TModel, TProperty&gt;&gt; expressionValue,
        Expression&lt;Func&lt;TModel, TProperty&gt;&gt; expressionText,
        IEnumerable&lt;TextValue&gt; items)
  </code></pre>
  
  <p>If I define </p>
  
  <pre><code>BsDropDownFor&lt;TModel,TProperty&gt; 
  </code></pre>
  
  <p>doing is expected the same property in both arguments.</p>
  
  <p>how should I define the method for receive two properties?</p>
  
  <p>Updated 03-03-2015</p>
  
  <p>Well my extension finally work</p>
  
  <p>changed my signature for </p>
  
  <pre><code>  public static MvcHtmlString BsDropDownFor&lt;TModel, TProperty&gt;(this HtmlHelper&lt;TModel&gt; htmlHelper,
                                             Expression&lt;Func&lt;TModel, TProperty&gt;&gt; expression,
                                             string elementIdText,
                                             IEnumerable&lt;TextValue&gt; items)
  </code></pre>
  
  <p>expressionText is establish for other extension method and on the view is called </p>
  
  <pre><code>@Html.BsDropDownFor(x =&gt; x.Type.Id, Html.ModelPropertyTagId( x =&gt; x.Type.Descripcion), (IEnumerable&lt;TextValue&gt;)ViewBag.ClaseB)
  </code></pre>
  
  <p>regards</p>