public virtual ActionResult Edit(string id, MenuEditModel m)
        {
            var x = Menus.Get(id);

            if (!ModelState.IsValid)
            {
                return(View(m));
            }
            try
            {
                m.Apply(x);
                Menus.Save(x);
                return(this.RedirectToAction(c => c.Index()));
            }
            catch (Exception ex)
            {
                Notifier.Notify(ex);
                return(View(x));
            }
        }
        public virtual ActionResult Edit(string id, MenuEditModel m)
        {
			var x = Menus.Get(id);
			if (!ModelState.IsValid)
			{
				return View(m);
			}
            try
            {
                m.Apply(x);
				Menus.Save(x);
                return this.RedirectToAction(c => c.Index());
            }
            catch (Exception ex)
            {
				Notifier.Notify(ex);
                return View(x);
            }
        }
 public virtual ActionResult Edit(string id)
 {
     return(View(MenuEditModel.FromDomain(Menus.Get(id))));
 }