Пример #1
0
        public void SetViewBag(int?selectedId = null)
        {
            var dao = new MenuDAO();

            ViewBag.TypeID = new SelectList(dao.GetList(), "ID", "Name", selectedId);
        }