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); }
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); }