Пример #1
0
        // GET: Role
        public IActionResult List(string name)
        {
            var list = systemRoleBusiness.SelectAll(name);

            ViewBag.list = list;
            return(View());
        }
Пример #2
0
        public IActionResult EditRole(long employeeId)
        {
            ViewBag.employeeId = employeeId;
            var roleIds = _systemUserRoleBusincess.GetRoleIds(employeeId);

            ViewBag.roleIds = roleIds;
            var roleList = _systemRoleBusiness.SelectAll("");

            ViewBag.roleList = roleList;
            return(View());
        }