public async Task <ActionResult <StadiumResponse> > GetSpecificStadium(string stadiumName) { try { var searchedStadium = await _repository.GetSpecificStadium(stadiumName); var stadiumResponseMapping = _mapper.Map <StadiumResponse>(searchedStadium); _logger.LogInformation($"Stadium has been downloaded."); return(Ok(stadiumResponseMapping)); } catch (System.Exception ext) { _logger.LogError(ext, "Failed to download stadium."); // TODO return error object with proper error code. return(BadRequest()); } }