Example #1
0
        public static Address Map(EntityFramework.Core.Models.Address address)
        {
            var domainAddress = new Address
            {
                Id         = address.Id,
                CustomerId = address.CustomerId,
                Pin        = address.Pin
            };

            return(domainAddress);
        }
Example #2
0
        public static EntityFramework.Core.Models.Address Map(Address address)
        {
            var entityAddress = new EntityFramework.Core.Models.Address
            {
                Id         = address.Id,
                CustomerId = address.CustomerId,
                Pin        = address.Pin
            };

            return(entityAddress);
        }