public IActionResult Index()
 {
     try
     {
         Athlete athlete = _athleteService.FindByUsername();
         return(View(athlete));
     }
     catch (MySqlException)
     {
         return(RedirectToAction(nameof(Error), new { message = "Error while trying to access the database." }));
     }
 }