public ActionResult Edit(Guid id, NewsEditModel model)
        {
            SiteMapItem currentNode = GetSiteMapItem(id);
            if (!ModelState.IsValid)
            {
                model.CurrentUrl = currentNode.Url;
                return View(model);
            }

            var newsItemUrl =
                BusinessShell.RunWithResult(
                    () => new UpdateNewsItemOperation(id, model.Abstract, model.IsActive, model.Text, model.Title, User.Identity.Name,
                                                      model.PublishDate, model.DisplayOnMainMenu, model.DisplayOnSideMenu,
                                                      model.SortOrder));

            return Redirect(newsItemUrl);
        }
        public ActionResult Edit(Guid id)
        {
            NewsView currentNews = BusinessShell.RunWithResult(() => new FindNewsItemOperation(id));

            var model = new NewsEditModel
                            {
                                Abstract = currentNews.Abstract,
                                CurrentUrl = currentNews.Url,
                                DisplayOnMainMenu = currentNews.DisplayOnMainMenu,
                                DisplayOnSideMenu = currentNews.DisplayOnSideMenu,
                                IsActive = currentNews.IsActive,
                                PublishDate = currentNews.PublishedDate,
                                SortOrder = currentNews.SortOrder,
                                Text = currentNews.Text,
                                Title = currentNews.Title
                            };
            return View(model);
        }