Пример #1
0
 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
     });
 }
Пример #2
0
        public async Task <AddressDto.AddressDto> RetrieveAsync(Guid id)
        {
            Address.Domain.Address address = await _addressRepository.RetrieveAsync(id);

            return(ConvertToAddressDto(address));
        }