public ActionResult Market()
 {
     PlayerStorage playerStorage = new PlayerStorage();
     var model = new MainPageViewModel();
     model.Players = playerStorage.GetAllPlayers();
     return View(model);
 }
Exemplo n.º 2
0
        public ActionResult Market()
        {
            PlayerStorage playerStorage = new PlayerStorage();
            var           model         = new MainPageViewModel();

            model.Players = playerStorage.GetAllPlayers();
            return(View(model));
        }
Exemplo n.º 3
0
 public IEnumerable <Player> GetAllPlayers()
 {
     return(playerStorage.GetAllPlayers());
 }