title: MVC partial view with int model throws exception
body: <p>I have created a partial view that allows an int to be updated using the jQuery spinner plugin. This is shown in a qtip tooltip.</p>
  
  <pre><code>@model int
      ...
  @Html.TextBoxFor(x =&gt; x, new { @class = "spinner" })
  </code></pre>
  
  <p>and the controller action:</p>
  
  <pre><code>[HttpGet]
  public PartialViewResult TaskPriority(int id)
  {
      var task = Task.Get(id);
      return PartialView("TaskPriority", task.Priority);
  }
  </code></pre>
  
  <p>When I call the action from my page I get:</p>
  
  <blockquote>
    <p>Value cannot be null or empty. Parameter name: name</p>
  </blockquote>
  
  <p>The exception is thrown on the TextBoxFor line.</p>
  
  <p>So what am I doing wrong here and why is it wrong? Am I overcomplicating it?</p>