Before committing the record from the postback of the Create or Edit method in my controller, I validate the values in the form against some business rules in the GetRuleViloations() of this domain object. The following rule example is written in two ways. The 1st one validates against the numeric values in form, the 2nd one validates using the associated object (lookup table in database) description via the foreign key. I would like to use the 2nd method, but during the Create postback the associated object is always null.
/***** this works for Edit postback but doesn't work for Create postback *****/
if (Reason.HasValue && (Status.HasValue && Status1.Status1.Contains("TBD"
View Complete Post