public async Task <IActionResult> NewPicPost(IFormFile uploadedFile)
        {
            if (uploadedFile != null)
            {
                _allPlayers.ProfilePic(uploadedFile, _allPlayers.GetPlayerByName(HttpContext.Session.GetString("LoggedPlayer")).Id);
                //IMemoryCache cache = new IMemoryCache;
            }

            return(Redirect("/Home/Index"));
        }