Beispiel #1
0
        public async Task <ActionResult> DeleteAthlete(int id)
        {
            try
            {
                await _athleteRepository.DeleteAthlete(id);
            }
            catch (Exception e)
            {
                return(Problem(e.Message));
            }

            return(Ok());
        }
Beispiel #2
0
 public void DeleteAthlete(int athlete)
 {
     _athleteRepo.DeleteAthlete(athlete);
 }