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