public virtual ActionResult Index(MenuCreateModel m)
        {
            ViewData["m"] = m;
            if (!ModelState.IsValid)
            {
                return(View(Menus.All().WithDocuments()));
            }

            var x = m.CreateMenu();

            try
            {
                Menus.Save(x);
                return(this.RedirectToAction(c => c.Edit(x.Document.Id)));
            }
            catch (Exception ex)
            {
                Notifier.Notify(ex);
                return(View(Menus.All().WithDocuments()));
            }
        }
        public virtual ActionResult Index(MenuCreateModel m)
        {
			ViewData["m"] = m;
			if (!ModelState.IsValid)
			{
                return View(Menus.All().WithDocuments());
			}
			
			var x = m.CreateMenu();
            try
            {
				Menus.Save(x);
                return this.RedirectToAction(c => c.Edit(x.Document.Id));
            }
            catch (Exception ex)
            {
				Notifier.Notify(ex);
                return View(Menus.All().WithDocuments());
            }
        }