Contents tagged with IEnumerable

  • MVC Model Binding: Complex Objects and Collections

    Also known as "Why is my ViewModel returning null values to my HttpPost action?" The answer is at the very bottom if you feel like skipping straight to it. Let's say for example you have the following ViewModel and classes: public class MyViewModel { public ComplexObject MyComplexObject { get; set; } public int Value { get; set; } public IEnumerable<ComplexObject> … more

  • 1