title: ViewModel MVC 3
body: <p>I am new to MVC. I am going through the following
  <a href="http://www.asp.net/mvc/tutorials/creating-a-mvc-3-application-with-razor-and-unobtrusive-javascript" rel="nofollow noreferrer">tutorial</a>.</p>
  
  <p>I am on the portion where it calls for the following code</p>
  
  <pre><code>[HttpPost]
  public ViewResult Edit(UserModel um) 
  {
  
    if (!TryUpdateModel(um)) 
    {
      ViewModel.updateError = "Update Failure";
      return View(um);
    }
  
    // ToDo: add persistent to DB.
    _usrs.Update(um);
    return View("Details", um);
  }
  </code></pre>
  
  <p>When I attempt to use ViewModel I receive an error:</p>
  
  <p>"The name ViewModel does not exist in the current context." </p>
  
  <p>Intellisense does not show ViewModel as an option. </p>