public ActionResult PermissionEdit(int id) { PERMISSION _permission = ApplicationRoleManager.GetPermission(id); ViewBag.RoleId = new SelectList(ApplicationRoleManager.GetRoles4SelectList(), "Id", "Name"); return(View(_permission)); }
private void SetViewBagData(string _userId) { ViewBag.UserId = _userId; ViewBag.List_boolNullYesNo = this.List_boolNullYesNo(); ViewBag.RoleId = new SelectList(ApplicationRoleManager.GetRoles4SelectList(), "Id", "Name"); }