title: Pass a model to a partial view?
body: <p>this is my partial:</p>
  
  <pre><code>@model RazorSharpBlog.Models.MarkdownTextAreaModel
  
  &lt;div class="wmd-panel"&gt;
      &lt;div id="wmd-button-bar-@Model.Name"&gt;&lt;/div&gt;
      @Html.TextAreaFor(m =&gt; m.Name, new { @id = "wmd-input-" + @Model.Name, @class = "wmd-input" })
  &lt;/div&gt;
  &lt;div class="wmd-panel-separator"&gt;&lt;/div&gt;
  &lt;div id="wmd-preview-@Model.Name" class="wmd-panel wmd-preview"&gt;&lt;/div&gt;
  
  &lt;div class="wmd-panel-separator"&gt;&lt;/div&gt;
  </code></pre>
  
  <p>I'm trying to include it like this in my <code>View</code>:</p>
  
  <pre><code>@using (Html.BeginForm())
  {
      @Html.LabelFor(m =&gt; m.Title)
      @Html.TextBoxFor(m =&gt; m.Title)
  
      @Html.Partial("MarkdownTextArea", new { Name = "content" })
  
      &lt;input type="submit" value="Post" /&gt;
  }
  </code></pre>
  
  <p>these are the model classes:</p>
  
  <pre><code>public class MarkdownTextAreaModel
  {
      [Required]
      public string Name { get; set; }
  }
  
  public class BlogContentModel 
  {
      [Required]
      [Display(Name = "Post Title")]
      public string Title { get; set; }
  
      [Required]
      [DataType(DataType.MultilineText)]
      [Display(Name = "Post Content")]
      public string Content { get; set; }
  }
  </code></pre>
  
  <p>What am I doing wrong, how should I do this in order to make my partial reusable?</p>