public IActionResult Get(string companyName) { try { var result = _repository.GetBusinessByName(companyName); return(Ok(Mapper.Map <BusinessViewModel>(result))); } catch (Exception ex) { //TODO logging _logger.LogError($"No se pudieron encontrar los negocios: {ex}"); return(BadRequest("Ocurrio un error")); } }