예제 #1
0
 public IActionResult History()
 {
     try
     {
         List <Competition> pastCompetitions = repo.GetPastCompetitions();
         return(View(pastCompetitions));
     }
     catch (Exception)
     {
         //connection error page
         return(View("Error"));
     }
 }