This question has already been answered:
Writes an error when adding an object to the "Object link does not indicate an object instance." How to be?
var countryList = new otherCountryObj(); countryList.Country = "RU"; countryList.QWE = "4000234234928305928"; model.rezidentOtherCountry.country.Add( countryList ); public class rezidentOtherCountry { public bool? isRezidentOtherCountry { get; set; } public List<otherCountryObj> country; } public class otherCountryObj { public string Country { get; set; } public string QWE{ get; set; } }
model.rezidentOtherCountryandmodel.rezidentOtherCountry.countryexactly initialized? - Suvitruf ♦