Exemple #1
0
        public async Task DeleteAsync(int userId)
        {
            var athlete = await _athleteRepository.GetOrFailAsync(userId);

            _logger.LogInfo($"Athlete with user id: '{userId}' was removed.");

            await _athleteRepository.DeleteAsync(athlete);
        }