title: How to use functions in asp-for attribute or @Html.EditorFor or @Html.TextBoxFor
body: <p>I am developing MVC website in .Net Core 2.0. In this, I want ViewModel binding but, my ViewModel is of IEnumeration Type. When I want to use functions to in the tag i.e.</p>
  
  <pre><code>@Html.EditorFor(Model.Property.Where(s =&gt; s.SomeCondition).Select(s =&gt; s.someProperty).First())
  </code></pre>
  
  <p>I get error.I used same with</p>
  
  <pre><code>&lt;input type="number" asp-for="@Model.Property.Where(s =&gt; s.SomeCondition).Select(s =&gt; s.someProperty).First()"&gt;
  </code></pre>
  
  <p>That also gives error. Any way to do the operation?</p>