public static List<MapRoomUser> RemoveMapRoomUser(this List<MapRoomUser> mapRoomUsers, MapRoomUser mapRoomUser) { mapRoomUsers.Remove(mapRoomUsers.Where(s => s.user == mapRoomUser.user).FirstOrDefault()); return mapRoomUsers; }
public static List<MapRoomUser> AddMapRoomUser(this List<MapRoomUser> mapRoomUsers, MapRoomUser mapRoomUser) { mapRoomUsers.Add(mapRoomUser); return mapRoomUsers; }