title: MVC ViewModel that lives in Session - how to update?
body: <p>I have done that the "standard" way:</p>
  
  <pre><code>    public ActionResult Respondent()
      {
          return View(Session["Respondent"]); //passing the model
      }
  
      [HttpPost]
      public ActionResult Respondent(Respondent resp)
      {
          repository.UpdateRespondent(Respondent resp);
          Session["Respondent"] = respondent; //put back into session
          return View(respondent); //redraw view, passing in respondent
      }
  </code></pre>
  
  <p>And it works. I am passing the respondent model only for MVC to collect FORM values automatically, in the POST action, where inside the view I have these for all the properties:</p>
  
  <pre><code>@using (Html.BeginForm())
  {
      @Html.LabelFor(model =&gt; model.FirstName)
      @Html.EditorFor(model =&gt; model.FirstName)
      @Html.ValidationMessageFor(model =&gt; model.FirstName)
  
      // and so on...
  }
  </code></pre>
  
  <p>My question is - if I am already using a Session object (that lives in Session), 
  Is there any way I can use the Session object as a Model inside the view, so that HttpPost works including all the validation. How then, the values will get collected and put back into the Session?</p>
  
  <p>Thank you.</p>