public virtual ActionResult UpdateWidget(SiteMapWidgetModel model) { if (ModelState.IsValid) { model = SiteMapWidgetHelper.SaveSiteMapWidget(model); } return(PartialView("EditWidget", model)); }
/// <summary> /// Views the widget. /// </summary> /// <param name="instance">The instance.</param> /// <returns></returns> public virtual ActionResult ViewWidget(ICoreWidgetInstance instance) { if (instance != null && instance.InstanceId != null) { IEnumerable <SiteMapViewWidgetModel> siteMap = SiteMapWidgetHelper.BindSiteMap(instance, this.CorePrincipal()); return(PartialView(siteMap)); } return(Content(HttpContext.Translate("SelectItemsToDisplay", ResourceHelper.GetControllerScope(this)))); }
public override long?Clone(ICoreWidgetInstance coreWidgetInstance) { return(SiteMapWidgetHelper.CloneSiteMapWidget(coreWidgetInstance)); }