1.You forgot to give details about the error;
2.If you want to search by name as you said, you should change your code like this:
public ActionResult Search(Player player)
{
string playerName = palyer.PlayerName;
Player player= context.Players.FirstOrDefault(x => x.PlayerName == playerName );
return View(player);
}