protected void dvDataSource_Inserting(object sender, ObjectDataSourceMethodEventArgs e) { InsuranceSubType ist = e.InputParameters["entityToInsert"] as InsuranceSubType; InsuranceSubTypeController.ValidateInsertCode(ist.Code); }
protected void dvDataSource_Updating(object sender, ObjectDataSourceMethodEventArgs e) { InsuranceSubType ist = e.InputParameters["newEntity"] as InsuranceSubType; InsuranceSubTypeController.ValidateUpdateCode(ist.ID, ist.Code); }