title: MVC 4 - Pass Data from View => Controller
body: <p>The entity "Bond" has a property named "Kauf" that is another entity ("Price" = date, addedBy, value).</p>
  
  <p>Now, when in Create View of Bond ( = Buy), a value for Price needs to be entered. The standard Create View has no field for entering price data.</p>
  
  <p>If I add </p>
  
  <pre><code>    &lt;div class="editor-field"&gt;
          @Html.EditorFor(model =&gt; model.Kauf.Value)
          @Html.ValidationMessageFor(model =&gt; model.Kauf.Value)
      &lt;/div&gt;
  </code></pre>
  
  <p>to the view, then how would I be able to grasp that value in the controller, where regularly only the entity "Bond" is accepted as parameter?</p>
  
  <pre><code>    [HttpPost]
      public ActionResult Create(Bond position)
  </code></pre>
  
  <p>Trying to access it through</p>
  
  <pre><code>    position.Kauf.Value 
  </code></pre>
  
  <p>would just reference the (yet) empty property "Kauf" from bond, I guess. Thank you for input!</p>