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; } }
public void Set(IPropertyDto <T> property) { this.property = property; }