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

            ViewBag.ParentID = new SelectList(dao.ListAll(), "ID", "Name", selectedId);
        }