private static AddressDto.AddressDto ConvertToAddressDto(Address.Domain.Address address) { return(new AddressDto.AddressDto { City = address.City, County = address.County, ID = address.ID, Province = address.Province }); }
public async Task <AddressDto.AddressDto> RetrieveAsync(Guid id) { Address.Domain.Address address = await _addressRepository.RetrieveAsync(id); return(ConvertToAddressDto(address)); }