I have view model:
Customer
{
public string Name { get; set; }
...
public IEnumerable<string> Emails { get; set; }
}
I've post it in the view:
...
@foreach (var Emails in Model.Emails)
{
@Html.EditorFor(modelItem => Emails)
}
...
How can I return to controller an array of this Emails?
When I return data from form to controller in this moment, property "Customer.Emails" equals null, but it should contain an array of e-mails.