title: assigning variables in the View in ASP MVC 3
body: <p>Actually I'm very new to ASP.NET MVC and I need your help.</p>
  
  <p>Here I have some Create Method that takes an argument from the URL to use it as id: </p>
  
  <p>in 'vote' controller :</p>
  
  <pre><code>    public ActionResult Create(int id)
      {
          Meeting meeting = db.Meetings.Find(id); // get the object
          ViewBag.meetingID = meeting.meetingID;  // get its id and assign it to a ViewBag
  
          return View();
      }
  </code></pre>
  
  <p>and I would like to do something like : </p>
  
  <pre><code>vote.meetingID = @ViewBag.meetingID
  </code></pre>
  
  <p>in the model so that is directly assgin this property without excplicitely typing it from the HTML view (I mean @Html.EditorFor(model=>meetingID) )</p>