How do I post a list of complex properties with editor template to controller database first
<p>I have to create a notes app for homework and it should contain Notes with a List of Tags as property. My generated Notes object looks like this:</p>

<pre><code>public partial class Note
{
    public Note()
    {
        this.Tags = new HashSet&lt;Tag&gt;();
    }

    public int Id { get; set; }
    public string Title { get; set; }
    public string Text { get; set; }
    public string Author { get; set; }
    public string Mail { get; set; }

    public virtual ICollection&lt;Tag&gt; Tags { get; set; }
}
</code></pre>

<p>Also I have a generated Tag Object:</p>

<pre><code>public partial class Tag
{
    public Tag()
    {
        this.Notes = new HashSet&lt;Note&gt;();
    }

    public int Id { get; set; }
    public string Name { get; set; }

    public virtual ICollection&lt;Note&gt; Notes { get; set; }
}
</code></pre>

<p>This is done with a many to many relationship, i have no entity for NoteTags but a database table. 
Now how do I make it possible for the user to edit the tags for a note?
I tried many things already, for example <a href="https://stackoverflow.com/questions/14498148/how-do-i-make-my-list-based-editor-template-bind-properly-for-a-post-action">this</a> but that did not work for me because i would have to edit the generated model.</p>

<p>Idk if this helps to understand my situation, here's my editortemplate tag.cshtml:</p>

<pre><code>@model IEnumerable&lt;CRUDApp.Models.Tag&gt;

@foreach (var item in Model)
{
    @Html.EditorFor(modelItem =&gt; item.Name)&lt;br /&gt;
}
</code></pre>

<p>Whenever I post the form in the edit mode, Tags will be null within the Note object.</p>