Example #1
0
        // GET: User
        public ActionResult Index()
        {
            ViewBag.Roles = new SelectList(_userRoleViewService.ViewAll(), "Id", "UserRoleName");
            List <UserViewModel> users = _userViewService.ViewAll().ToList();

            return(View(users));
        }
 public ViewResult Index()
 {
     return(View(_userRoleViewService.ViewAll()));
 }