public Core.Domain.Installation.Address Save(Core.Domain.Installation.Address address) { if (_connection.Get.InsertOrReplace(AddressEntity.FromDomain(address)) > 0) { return(address.WithId(_connection.LastIndex)); } return(null); }
public InstallationDomain toDomain(LocationMapping location, Core.Domain.Installation.Address address, Core.Domain.Installation.Sponsor sponsor) => new InstallationDomain(Id, Elevation, IsAirlyInstallation, location, address, sponsor);