public async Task <IActionResult> Post([FromBody] string zipCode) { if (string.IsNullOrWhiteSpace(zipCode)) { return(BadRequest()); } try { var result = await _dataRetriever.GetData(zipCode); return(Ok(result?[0])); } catch (Exception ex) { _logger.LogError(ex.Message); return(NoContent()); } }