示例#1
0
        public List <Player> GetAllPlayers()
        {
            List <Player> result = new List <Player>();

            _iPlayerDAL.GetAllPlayers().ForEach(p => result.Add(
                                                    MapPlayerToModel(p)
                                                    ));

            return(result);
        }
示例#2
0
        public IActionResult Players()
        {
            var players = playerDal.GetAllPlayers();

            return(View(players));
        }