Esempio n. 1
0
        public ActionResult Create(Menu menu)
        {
            if (ModelState.IsValid)
            {
                var dao = new  MenuDAO();
                dao.AddMenu(menu);

                return(RedirectToAction("Index", "Menu"));
            }

            SetViewBags(null, menu.ID);
            return(View(menu));
        }