title: How do I use MVC3 editor templates for lists with add and delete with the Razor viewengine?
body: <p>How do I use MVC3 editor templates for lists with add and delete?</p>
  
  <p>I have an object:</p>
  
  <pre><code>public class Policy
  {
      public List&lt;PolicyLine&gt; PolicyLines = new List&lt;PolicyLine&gt;();
  }
  
  public class PolicyLine
  {
      public PolicyLine(bool isPositive, string policyText)
      {
          IsPositive = isPositive;
          PolicyText = policyText;
      }
  
      public bool IsPositive { get; set; }
  
      public string PolicyText { get; set; }
  }
  </code></pre>
  
  <p>I have an editorTemplate: in Views\Shared\EditorTemplates\Policy.cshtml and Views\Shared\EditorTemplates\PolicyLine.cshmtml and I'm wondering how to enable users to add and delete PolicyLines from the Policy?</p>