Пример #1
0
        public WidgetHistoryModel(Guid widgetid)
            : this()
        {
            this.Root_WidgetID = widgetid;

            using (WidgetHelper widgetHelper = new WidgetHelper()) {
                if (this.Widget == null)
                {
                    this.History.DataSource = widgetHelper.GetWidgetVersionHistory(widgetid);
                    this.Widget             = this.History.DataSource.Where(x => x.IsLatestVersion == true).FirstOrDefault();

                    this.Root_ContentID = this.Widget.Root_ContentID;
                }
            }

            GetCtrlName();
        }