Example #1
0
        public void SetViewBag(long?selectedId = null)
        {
            var dao = new CategoryDao();

            ViewBag.Category_ID = new SelectList(dao.LissAll(), "ID", "Name", selectedId);
        }