示例#1
0
        /// <summary>
        /// deletes the Logged In player from the cache
        /// and returns to the log in screen
        /// </summary>
        /// <returns></returns>
        public IActionResult Logout()
        {
            _game.GameLogout();
            //_cache.Remove("loggedInPlayer");

            return(View("Index"));
        }
示例#2
0
        public ActionResult <Player> Logout()
        {
            Player p1 = _game.GameLogout();

            //_cache.Remove("loggedInPlayer");

            return(p1);
        }
 public ActionResult Logout()
 {
     _game.GameLogout();
     //return View("Index");
     return(NoContent());
 }
 /// <summary>
 /// deletes the Logged In player from the cache
 /// and returns to the log in screen
 /// </summary>
 /// <returns></returns>
 public IActionResult Logout()
 {
     _game.GameLogout();
     return(View("Index"));
 }