public void InserirEndereco(Address adress) { try { int idGeo = _geoRepository.GetId(); var query = "Insert into Adress(IdGeo, Street, Suite, City, Zipcode) values(@IdGeo, @Street, @Suite, @City, @Zipcode)"; var result = _conn.Execute(query, new { IdGeo = idGeo, Street = adress.Street, Suite = adress.Suite, City = adress.City, Zipcode = adress.Zipcode }); } catch (Exception ex) { _logger.LogError(ex, "Erro ao salvar o endereço!!!"); } }