Exemplo n.º 1
0
        public ActionResult UpdatePlayers()
        {
            PlayerManager     playerManager      = new PlayerManager(_context);
            ProjectionManager projectionsManager = new ProjectionManager(_context);

            List <Player> projections = projectionsManager.GetProjections();

            playerManager.DeleteAll();
            playerManager.Add(projections);

            return(RedirectToAction("Index"));
        }