public RoleModel(Mysql mysqlConnection) { roleFunctions = new RoleDBFunctions(mysqlConnection); currentRole = null; LoadRoleList(); }
public void LoadRole(int roleID, string roleName) { currentRole = new Role(); currentRole.id = roleID; currentRole.name = roleName; LoadPermissionsOfRole(); }
public void UnsetRole() { currentRole = null; }