public void UnassignUser(User userToAssign) { if (userToAssign == null) { throw new ArgumentNullException(nameof(userToAssign)); } if (AssignedUsers.Contains(userToAssign)) { AssignedUsers.Remove(userToAssign); } }