Esempio n. 1
0
 public IActionResult RecentGames()
 {
     if (repHandler.isAdmin())
     {
         //return View("Admin");
         return(RedirectToAction(nameof(AdminController.RecentGames), "Admin"));
     }
     else
     {
         return(View(repHandler.AllMatches()));
     }
 }