@using HtmlHelpers.BeginCollectionItemCore;
@model BeginCollectionItemCoreDemo.ViewModels.OrderItemModel
@using (Html.BeginCollectionItem("orderItems"))
{
@Html.LabelFor(x => x.Title);
@Html.EditorFor(x => x.Title);
@Html.LabelFor(x => x.Quantity);
@Html.EditorFor(x => x.Quantity);
}
cornelcocioaba / begincollectionitemcore Goto Github PK
View Code? Open in Web Editor NEWThis project forked from saad749/begincollectionitemcore
This Html Helper leverages the default model binder in ASP.NET MVC Core and higher to materialize viewmodel collection properties from an HTTP POST and is based on Stevens Anderson BeginCollectionItem
Home Page: http://blog.stevensanderson.com/2010/01/28/editing-a-variable-length-list-aspnet-mvc-2-style/
License: MIT License