Exemplo n.º 1
0
        /// <summary>
        /// Deletes a widget from the dashboard.
        /// </summary>
        public void RemoveWidget(int widgetId)
        {
            InitRepo();

            //Get widget
            Widget widget = GetWidgetWithAllData(widgetId);

            if (widget == null)
            {
                return;
            }

            //Remove widget
            widgetRepo.DeleteWidget(widget);
        }
Exemplo n.º 2
0
 public void DeleteWidget(Guid id)
 {
     _repo.DeleteWidget(id);
 }