How to bind an Array in MVC Core
问题 I try to bind an object like this in a Action public class MonthDataViewModel { public int Year { get; set; } public int Month { get; set; } public IEnumerable<MoneyDataItemViewModel> MoneyCosts { get; set; } } public class MoneyDataItemViewModel { public string Title { get; set; } public decimal Cost { get; set; } } Is that possible? How do i design the form? I try a few times but the property MoneyCosts won't be bind , and this is the data i submited: Year=2016 Moneh=8 MoneyCosts.Title=ABC