It would be great in my part if the address classes is in the Customer model,
got this error..
"Object reference not set to an instance of an object."
I think I got a wrong value in coding, can you gave me an example of Billing address that I can put in the field?? , what do you think of this error??
BillingAddress = { StreetAddress1 = formCollection["StreetAddress1"], StreetAddress2 = formCollection["StreetAddress2"], City = formCollection["City"], StateCode = (StateCode)Enum.Parse(typeof(StateCode), formCollection["StateCode"]), Country = (CountryCode)Enum.Parse(typeof(CountryCode), formCollection["Country"]), ZipCode = formCollection["ZipCode"] }
It would be great in my part if the address classes is in the Customer model,
got this error.. "Object reference not set to an instance of an object." I think I got a wrong value in coding, can you gave me an example of Billing address that I can put in the field?? , what do you think of this error??
BillingAddress = { StreetAddress1 = formCollection["StreetAddress1"], StreetAddress2 = formCollection["StreetAddress2"], City = formCollection["City"], StateCode = (StateCode)Enum.Parse(typeof(StateCode), formCollection["StateCode"]), Country = (CountryCode)Enum.Parse(typeof(CountryCode), formCollection["Country"]), ZipCode = formCollection["ZipCode"] }