public static webModel.DynamicContentItem ToWebModel(this coreModel.DynamicContentItem content)
		{
			var retVal = new webModel.DynamicContentItem();
			retVal.InjectFrom(content);
		
			if(content.Properties != null)
			{
				retVal.Properties = new webModel.PropertyDictionary();

				foreach (var property in content.Properties)
				{
					retVal.Properties.Add(property.Name, property.Value);
				}
			}
			return retVal;
		}
        public static webModel.DynamicContentItem ToWebModel(this coreModel.DynamicContentItem content)
        {
            var retVal = new webModel.DynamicContentItem();

            retVal.InjectFrom(content);

            if (content.Properties != null)
            {
                retVal.Properties = new webModel.PropertyDictionary();

                foreach (var property in content.Properties)
                {
                    retVal.Properties.Add(property.Name, property.Value);
                }
            }
            return(retVal);
        }
		public static webModel.DynamicContentItem ToWebModel(this coreModel.DynamicContentItem content)
		{
			var retVal = new webModel.DynamicContentItem();
			retVal.InjectFrom(content);

			retVal.Properties = new webModel.PropertyDictionary();
			
			foreach (var property in content.DynamicProperties)
			{
				if(property.Values != null)
				{
					retVal.Properties.Add(new KeyValuePair<string, object>(property.Name, property.Values.Count() > 1 ? (object)property.Values : property.Values.FirstOrDefault()));
				}
			
			}
			
			return retVal;
		}
        public static webModel.DynamicContentItem ToWebModel(this coreModel.DynamicContentItem content)
        {
            var retVal = new webModel.DynamicContentItem();

            retVal.InjectFrom(content);

            retVal.Properties = new webModel.PropertyDictionary();

            foreach (var property in content.DynamicProperties)
            {
                if (property.Values != null)
                {
                    retVal.Properties.Add(new KeyValuePair <string, object>(property.Name, property.Values.Count() > 1 ? (object)property.Values : property.Values.FirstOrDefault()));
                }
            }

            return(retVal);
        }