public dtoTileItemDisplay(liteTileItem item, Int32 idUserLanguage, Int32 idDefaultLanguage) { NavigateUrl = item.NavigateUrl; ToolTip = item.GetTranslation(idUserLanguage, idDefaultLanguage); CssClass = item.CssClass; Type = item.Type; }
public virtual object Clone() { liteTileItem clone = new liteTileItem(); clone.Type = Type; clone.CssClass = CssClass; clone.ToolTip = ToolTip; clone.NavigateUrl = NavigateUrl; if (Translations.Any()) { clone.Translations = Translations.Where(t => t.Deleted == BaseStatusDeleted.None).Select(t => (liteTileItemTranslation)t.Clone()).ToList(); } clone.Deleted = Deleted; clone.Id = Id; return(clone); }