public static Banner AsWebModel(this Data.DynamicContentItem item) { var dc = new Banner(); dc.InjectFrom(item); return(dc); }
public static T AsWebModel <T>(this Data.DynamicContentItem item) where T : Banner, new() { var dc = new T(); dc.InjectFrom(item); return(dc); }
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); }