Example #1
0
    protected void dvDataSource_Inserting(object sender, ObjectDataSourceMethodEventArgs e)
    {
        InsuranceSubType ist = e.InputParameters["entityToInsert"] as InsuranceSubType;

        InsuranceSubTypeController.ValidateInsertCode(ist.Code);
    }
Example #2
0
    protected void dvDataSource_Updating(object sender, ObjectDataSourceMethodEventArgs e)
    {
        InsuranceSubType ist = e.InputParameters["newEntity"] as InsuranceSubType;

        InsuranceSubTypeController.ValidateUpdateCode(ist.ID, ist.Code);
    }