/// <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); }
public void DeleteWidget(Guid id) { _repo.DeleteWidget(id); }