public static OptionSetValueWrapper ToOptionSetValueWrapper(this OptionSetValue optionSetValue) { OptionSetValueWrapper returnValue = null; if (optionSetValue == null) { return(null); } returnValue = new OptionSetValueWrapper() { AttributeValue = optionSetValue.Value }; return(returnValue); }
public static OptionSetValue ToCrmOptionSetValue(this OptionSetValueWrapper optionSetValueWrapper) { OptionSetValue returnValue = new OptionSetValue((int)optionSetValueWrapper.AttributeValue); return(returnValue); }