public async Task <IActionResult> GetFriendInvites()
        {
            try
            {
                Player player      = (Player)HttpContext.Items["SessionPlayer"];
                var    requestList = await _service.GetFriendInvites(player.username);

                ICollection <string> sendUserRequestsList = new List <string>();
                foreach (FriendInvite f in requestList)
                {
                    sendUserRequestsList.Add(f.playerId);
                }
                return(Ok(sendUserRequestsList));
            }
            catch (Exception exc)
            {
                this._logger.LogError(exc, exc.Message);
                return(StatusCode(500));
            }
        }