public IActionResult PlayerAddPost(Players newPlayer)
 {
     foreach (Players players in _allPlayers.AllPlayers)
     {
         if (players.Profile == newPlayer.Profile || players.Alias == newPlayer.Alias)
         {
             return(Redirect("/Players/PlayerAdd"));
         }
     }
     _allPlayers.AddPlayer(new Players {
         Profile = newPlayer.Profile, Pass = GetHash(newPlayer.Pass), Alias = newPlayer.Alias, Rating = 1400
     });
     HttpContext.Session.SetString("LoggedPlayer", newPlayer.Profile);
     return(Redirect("/Players/Account"));
 }