protected override void InternalValidate() { TaskLogger.LogEnter(); base.InternalValidate(); if (!base.HasErrors) { if (this.DataObject.Status == StatusEnum.Disabled) { AutoAttendantAlreadDisabledException exception = new AutoAttendantAlreadDisabledException(this.DataObject.Name); base.WriteError(exception, ErrorCategory.InvalidOperation, null); } else { UMDialPlan dialPlan = this.DataObject.GetDialPlan(); if (dialPlan == null) { DialPlanNotFoundException exception2 = new DialPlanNotFoundException(this.DataObject.UMDialPlan.Name); base.WriteError(exception2, ErrorCategory.InvalidOperation, null); } else { ValidationHelper.ValidateDisabledAA(this.ConfigurationSession, dialPlan, this.DataObject); } } } TaskLogger.LogExit(); }
protected override void InternalValidate() { TaskLogger.LogEnter(); base.InternalValidate(); if (!base.HasErrors) { UMDialPlan dialPlan = base.DataObject.GetDialPlan(); if (dialPlan == null) { DialPlanNotFoundException exception = new DialPlanNotFoundException(base.DataObject.UMDialPlan.Name); base.WriteError(exception, ErrorCategory.InvalidOperation, null); } else { ValidationHelper.ValidateDisabledAA(this.ConfigurationSession, dialPlan, base.DataObject); } } TaskLogger.LogExit(); }