/// <summary>
        /// Saves the article viewer widget.
        /// </summary>
        /// <param name="model">The model.</param>
        /// <returns></returns>
        public static DetailsWidgetEditModel SaveArticleViewerWidget(DetailsWidgetEditModel model)
        {
            var widgetService = ServiceLocator.Current.GetInstance<IWebContentDetailsWidgetService>();
            var articleViewer = model.MapTo(new WebContentDetailsWidget());
            widgetService.Save(articleViewer);

            return new DetailsWidgetEditModel().MapFrom(articleViewer);
        }
        public virtual ActionResult UpdateWidget(DetailsWidgetEditModel model)
        {
            if (ModelState.IsValid)
            {
                model = WebContentDetailsWidgetHelper.SaveArticleViewerWidget(model);
            }

            return PartialView("EditWidget", model);
        }