/// <summary> /// /// </summary> /// <param name="obj"></param> private void CallUIValidator(Object obj) { ILockCalculationUIValidation validator = UIValidationFactory.GetRepository <ILockCalculationUIValidation>(); // IRequestUIValidation validator = UIValidationFactory.GetRepository<IRequestUIValidation>(); if (validator != null) { validator.DoValidate(obj); } }
protected ILockCalculationUIValidation GetUIValidator() { ILockCalculationUIValidation validator = UIValidationFactory.GetRepository <ILockCalculationUIValidation>(); if (validator != null) { return(validator); } else { throw new Exception("Validator is null"); } }