public ActionResult Create(Guid id)
 {
     SiteMapItem parentNode = GetSiteMapItem(id);
     var model = new VacancyCreateModel
                     {
                         ParentUrl = parentNode.Url,
                         ParentTitle = parentNode.Title,
                         Title = "Вакансия",
                         IsActive = true,
                         SortOrder = 500
                     };
     return View(model);
 }
        public ActionResult Create(Guid id, VacancyCreateModel model)
        {
            SiteMapItem parentNode = GetSiteMapItem(id);
            if (!ModelState.IsValid)
            {
                model.ParentUrl = parentNode.Url;
                model.ParentTitle = parentNode.Title;
                return View(model);
            }

            string vacancyUrl =
                BusinessShell.RunWithResult(
                    () => new AddVacancyOperation(model.Abstract, User.Identity.Name,
                                                    model.IsActive, id, model.Text, model.Title,
                                                    model.Employer, model.Contact, model.Responsibilities, model.Conditions,
                                                    model.Demands, model.DisplayOnMainMenu, model.DisplayOnSideMenu, model.SortOrder, "/vacancy/display/{0}"));
            return Redirect(vacancyUrl);
        }