Exemple #1
0
        protected void SetStatus(bool valid, ERROR_CODE error, IPropertyDto <T> targetProperty)
        {
            targetProperty.Status = valid ? PROPERTY_STATUS.VALID : PROPERTY_STATUS.INVALID;

            if (!valid)
            {
                targetProperty.Code = error;
            }
        }
Exemple #2
0
 public void Set(IPropertyDto <T> property)
 {
     this.property = property;
 }