Exemplo n.º 1
0
        //THIS CAN BE AN API
        public int getLoadedSeconds()
        {
            //Use session to grab user
            int userID = (int)HttpContext.Session.GetInt32("userID");

            //Create a new instance of GameDAO and load the game
            GameDAO gameDAO    = new GameDAO();
            Game    gameObject = gameDAO.LoadGame(userID);

            return(gameObject.seconds);
        }