Esempio n. 1
0
        public ActionResult add()
        {
            List <AdminRole>             Rolelist  = adminRolebll.FindList(u => true, true, "Id").ToList();
            IEnumerable <SelectListItem> _roleList = Rolelist.Select(a => new SelectListItem
            {
                Text  = a.RoleName,
                Value = a.Id.ToString()
            });

            ViewData["RoleList"] = _roleList;
            return(View("add"));
        }