常用方法
常用方法
常用方法
常用方法
public IActionResult AddRole(string employeeId, int roleId) { if (_permissionServices.AddRoleForEmployee(roleId, employeeId)) { ViewData["Success"] = true; } ViewData["EmployeeId"] = new SelectList(_permissionServices.GetAllRole(), "RoleId", "RoleTitle", 0); return(View()); }