public IActionResult SearchAllUsers(string SearchTerm)
        {
            var globalChat = new GlobalChatViewModel
            {
                GlobalMessages = chatRepository.GetGlobalMessages()
            };

            var userModel = new UserListViewModel();

            if (SearchTerm == null || SearchTerm == "")
            {
                userModel.Users = userRepository.GetUsers();
            }
            else
            {
                userModel.Users = userRepository.SearchUsers(SearchTerm);
            }

            var model = new MultiplayerViewModel
            {
                chatModel = globalChat,
                userModel = userModel
            };

            return(PartialView("AllUserList", model));
        }
        public IActionResult Lobby()
        {
            var globalChat = new GlobalChatViewModel
            {
                GlobalMessages = chatRepository.GetGlobalMessages()
            };

            var userModel = new UserListViewModel
            {
                Users = userRepository.GetUsers()
            };

            var model = new MultiplayerViewModel
            {
                chatModel = globalChat,
                userModel = userModel
            };

            return(View(model));
        }