title: NerdDinner DinnerFormViewModel Error CS0030 error
body: <p>I am following the NerdDinner part in the Book Professional ASP.NET MVC 2. Currently i am at the part where i need to implement the DinnerFormViewModel and the Renderpartial Dinnerform.
  The book contains some errors here so I tried to search on the internet and fix it myself..</p>
  
  <p>I have put the DinnerFormViewModel in the Models folder this is the code:</p>
  
  <pre><code>using System;
  using System.Collections.Generic;
  using System.Linq;
  using System.Web;
  using System.Web.Mvc;
  
  namespace NerdDinner.Models
  {
      public class DinnerFormViewModel : Controller
      {
          private static string[] _countries = new[]{
          "USA",
          "Ireland",
          "Scotland",
          "Namibia"
      };
  
          //Properties
          public Dinner Dinner { get; private set; }
          public SelectList Countries { get; private set; }
  
          //Constructor
          public DinnerFormViewModel(Dinner dinner)
          {
              Dinner = dinner;
              Countries = new SelectList(_countries, dinner.Country);
          }
  
  
          // GET: /DinnerFormViewModel/
  
          public ActionResult Index()
          {
              return View();
          }
  
      }
  }
  </code></pre>
  
  <p>Then i have made the DinnerForm.ascx (Partial class):</p>
  
  <pre><code>&lt;%@ Control Language="C#" Inherits="System.Web.Mvc.ViewPage&lt;NerdDinner.Models.DinnerFormViewModel&gt;" %&gt;
  
  
  &lt;%: Html.ValidationSummary("Please correct the errors and try again.") %&gt;
  
  &lt;% using (Html.BeginForm()) { %&gt;
  
      &lt;fieldset&gt;
  
          &lt;p&gt;
              &lt;%: Html.LabelFor(m =&gt; m.Dinner.Title) %&gt;
              &lt;%: Html.TextBoxFor(m =&gt; m.Dinner.Title) %&gt;
              &lt;%: Html.ValidationMessageFor(m =&gt; m.Dinner.Title, "*") %&gt;
  </code></pre>
  
  <p>ETC...</p>
  
  <p>and i have made the edit.aspx as follows:</p>
  
  <pre><code>&lt;%@ Page Title="" Language="C#" MasterPageFile="~/Views/Shared/Site.Master" Inherits="System.Web.Mvc.ViewPage&lt;NerdDinner.Models.DinnerFormViewModel&gt;" %&gt;
  
  &lt;asp:Content ID="Title" ContentPlaceHolderID="TitleContent" runat="server"&gt;
      Edit: &lt;%: Model.Dinner.Title %&gt;
  &lt;/asp:Content&gt;
  
  &lt;asp:Content ID="Edit" ContentPlaceHolderID="MainContent" runat="server"&gt;
  
      &lt;h2&gt;Edit Dinner&lt;/h2&gt;
  
      &lt;% Html.RenderPartial("DinnerForm"); %&gt;
  
  &lt;/asp:Content&gt;
  </code></pre>
  
  <p>Now if i start the application, an error at &lt;% Html.RenderPartial("DinnerForm"); %> will popup saying:
  c:\Windows\Microsoft.NET\Framework\v4.0.30319\Temporary ASP.NET Files\root\c8cca855\23406a1e\App_Web_dinnerform.ascx.32d6c807.tczxq3bd.0.cs(166): error CS0030: Cannot convert type 'ASP.views_dinners_dinnerform_ascx' to 'System.Web.Mvc.ViewUserControl'</p>
  
  <p>I think it has something to do with the namespaces, but i can't fix the error, someone faced the same problem or someone here that can help me out?? Thank you!:)</p>