public async Task <Address> GetOrCreateDomainAddress(AddressAM address) { var result = await DomainAddressService.GetByCoordinate(address.Latitude, address.Longitude); if (result == null) { result = await CreateDomainAddress(AddressKind.Other, address); } return(result); }
public Task <Address> GetDomainAddressByCoordinate(Coordinate coordinate) { return(DomainAddressService.GetByCoordinate(coordinate.Latitude, coordinate.Longitude)); }