Пример #1
0
        public static Banner AsWebModel(this Data.DynamicContentItem item)
        {
            var dc = new Banner();

            dc.InjectFrom(item);
            return(dc);
        }
Пример #2
0
        public static T AsWebModel <T>(this Data.DynamicContentItem item) where T : Banner, new()
        {
            var dc = new T();

            dc.InjectFrom(item);
            return(dc);
        }
Пример #3
0
        public static Banner AsWebModel(this Data.DynamicContentItem item)
        {
            var dc = new Banner();

            dc.ContentType    = item.ContentType;
            dc.Id             = item.Id;
            dc.IsMultilingual = item.IsMultilingual;
            dc.Name           = item.Name;
            dc.Properties     = item.Properties;

            return(dc);
        }