My problem is following. I have a class lets call it MyModel. It contains a list of Item,
public class MyModel
{
public int Value { get; set; }
public string Identity { get; set; }
public List<Item> Items { get; set; }
}
public class Item
{
public string Name { get; set; }
public string Description { get; set; }
}
What i want to do is to create a View (form) in .cshtml and post the result to controller
I know how to do it for a model where i do have only strings or numbers but how do i do it when i want the user to enter Value, Identity and then a list with Item.
So the user should enter
Value, Identity and (many times) Item.
Any suggestion how to do it? Have not seen any example with that so therefore i am asking.
