Пример #1
0
 public ActionResult Add()
 {
     ViewBag.RoleId = new SelectList(RDao.ListAll(), "Id", "RoleName");
     return(View());
 }
Пример #2
0
 // GET: Administrators/Roles
 public ActionResult Index()
 {
     return(View(Dao.ListAll()));
 }