Exemple #1
0
        public static VirtoCommercePlatformCoreDynamicPropertiesDynamicPropertyObjectValue ToServiceModelDynamicPropertyObjectValue(this DynamicPropertyDictionaryItem dictItem)
        {
            var serviceModel = new VirtoCommercePlatformCoreDynamicPropertiesDynamicPropertyObjectValue();

            serviceModel.Value = dictItem;

            return(serviceModel);
        }
        public static VirtoCommercePlatformCoreDynamicPropertiesDynamicPropertyObjectValue ToServiceModelDynamicPropertyObjectValue(this DynamicPropertyDictionaryItem dictItem)
        {
            var serviceModel = new VirtoCommercePlatformCoreDynamicPropertiesDynamicPropertyObjectValue();

            serviceModel.Value = dictItem;

            return serviceModel;
        }
Exemple #3
0
        public static VirtoCommercePlatformCoreDynamicPropertiesDynamicPropertyObjectValue ToServiceModelDynamicPropertyObjectValue(this LocalizedString dynamicPropertyObjectValue)
        {
            var serviceModel = new VirtoCommercePlatformCoreDynamicPropertiesDynamicPropertyObjectValue();

            serviceModel.Value  = dynamicPropertyObjectValue.Value;
            serviceModel.Locale = dynamicPropertyObjectValue.Language.CultureName;

            return(serviceModel);
        }
Exemple #4
0
 public static LocalizedString ToWebModel(this VirtoCommercePlatformCoreDynamicPropertiesDynamicPropertyObjectValue dto)
 {
     return(new LocalizedString(new Language(dto.Locale), dto.Value.ToString()));
 }
        public static VirtoCommercePlatformCoreDynamicPropertiesDynamicPropertyObjectValue ToServiceModelDynamicPropertyObjectValue(this LocalizedString dynamicPropertyObjectValue)
        {
            var serviceModel = new VirtoCommercePlatformCoreDynamicPropertiesDynamicPropertyObjectValue();

            serviceModel.Value = dynamicPropertyObjectValue.Value;
            serviceModel.Locale = dynamicPropertyObjectValue.Language.CultureName;

            return serviceModel;
        }