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