In my model I have this particular property to add two different model values and show it in my index page.
public decimal Amount
{
get { return Products.Price * Qty; }
}
When I go to my create page and try to create another sale after I hit submit I get a yellow screen of death with the following:
Object reference not set to an instance of an object.
System.NullReferenceException: Object reference not set to an instance of an object.
It points to this part of my model get { return Products.Price * Qty; }
I'm not really interested in storing anything from here, and I don't even use the Amount property in my create page. Is there a way to tell it to ignore on submit?