コード例 #1
0
        /// <summary>
        /// Formulário de alteração de Menu
        /// </summary>
        /// <param name="id">The identifier.</param>
        /// <returns></returns>
        public ActionResult AlterarMenu(int id)
        {
            Menu menu  = menuDAO.GetById(id);
            var  model = MenuFactory.BuildModelView(menu);

            ViewBag.Role = new SelectList(roleDAO.List(), "Id", "Description", model.Role);
            return(View(model));
        }