Пример #1
0
        public ActionResult Edit(MenuEntidade menu)
        {
            MenuEntidade not = bo.SelectById(menu.Id);
            if (not != null)
            {
                not.Status = menu.Status;
                not.SubMenu = menu.SubMenu;
                not.Nome = menu.Nome;
                not.Url = menu.Url;
                bo.Edit(not);

                return RedirectToAction("Index");
            }
            return View(menu);
        }
Пример #2
0
 public ActionResult Create(MenuEntidade menu)
 {
     bo.Insert(menu);
     return RedirectToAction("Index");
 }