title: How to Assign a value to the Model from a viewBag in the view
body: <p>I have a string property in my model called <strong>extraValue</strong>, and in the view i got a <strong>ViewBag</strong> with a value, and I want to assign the Value in the viewbag to the Model property (extraValue)</p>
  
  <p>I tried: </p>
  
  <pre><code>@{Model.extraValue = ViewBag.id}
  </code></pre>
  
  <p>and I got a <strong>null</strong> value in the extraValue, I'm pretty sure that ViewBag.id holds a number.</p>
  
  <p>any idea? </p>