public static webModel.PropertyValue ToWebModel(this moduleModel.PropertyValue propValue)
		{
			var retVal = new webModel.PropertyValue();
			retVal.InjectFrom(propValue);
		    retVal.Value = propValue.Value;
			retVal.ValueType = propValue.ValueType;
		
			return retVal;
		}
        public static webModel.PropertyValue ToWebModel(this moduleModel.PropertyValue propValue)
        {
            var retVal = new webModel.PropertyValue();

            retVal.InjectFrom(propValue);
            retVal.Value     = propValue.Value;
            retVal.ValueType = propValue.ValueType;

            return(retVal);
        }
		public static webModel.PropertyValue ToWebModel(this moduleModel.PropertyValue propValue)
		{
			var retVal = new webModel.PropertyValue();
			retVal.InjectFrom(propValue);
            if(propValue.Property != null)
            {
                retVal.PropertyId = propValue.Property.Id;
            }
		    retVal.Value = (propValue.Value ?? String.Empty).ToString();
			retVal.ValueType = propValue.ValueType;
		
			return retVal;
		}
Ejemplo n.º 4
0
        public static webModel.PropertyValue ToWebModel(this moduleModel.PropertyValue propValue)
        {
            var retVal = new webModel.PropertyValue();

            retVal.InjectFrom(propValue);
            if (propValue.Property != null)
            {
                retVal.PropertyId = propValue.Property.Id;
            }
            retVal.Value     = (propValue.Value ?? String.Empty).ToString();
            retVal.ValueType = propValue.ValueType;

            return(retVal);
        }
Ejemplo n.º 5
0
        public static webModel.PropertyValue ToWebModel(this moduleModel.PropertyValue propValue)
        {
            var retVal = new webModel.PropertyValue();

            retVal.InjectFrom(propValue);
            if (propValue.Property != null)
            {
                retVal.PropertyId = propValue.Property.Id;
            }
            if (propValue.ValueType == Domain.Catalog.Model.PropertyValueType.DateTime && propValue.Value != null)
            {
                retVal.Value = DateTime.SpecifyKind(((DateTime)propValue.Value), DateTimeKind.Utc).ToString("yyyy-MM-ddTHH:mm:ss.fffZ");
            }
            else
            {
                retVal.Value = (propValue.Value ?? string.Empty).ToString();
            }
            retVal.ValueType = propValue.ValueType;

            return(retVal);
        }