public List <Player> GetAllPlayers() { List <Player> result = new List <Player>(); _iPlayerDAL.GetAllPlayers().ForEach(p => result.Add( MapPlayerToModel(p) )); return(result); }
public IActionResult Players() { var players = playerDal.GetAllPlayers(); return(View(players)); }