public async Task <ActionResult <FootballerResponse> > GetSpecificFootballer(string footballerSurname) { try { var searchedFootballer = await _repository.GetSpecificFootballer(footballerSurname); var footballerResponse = _mapper.Map <FootballerResponse>(searchedFootballer); _logger.LogInformation($"Footballer has been downloaded."); return(Ok(footballerResponse)); } catch (System.Exception ext) { _logger.LogError(ext, "Failed to download footballer."); // TODO return error object with proper error code. return(BadRequest()); } }