private async Task <int> GetAddressId(string address) { int addressId = await _repo.GetAddressId(address) ?? 0; if (addressId == 0) { var newAddress = new Database.Entities.Address() { Created = DateTime.Now, IsConfirmed = false, Label = address, }; await _repo.Add(newAddress); } return(addressId); }