예제 #1
0
        public static Address AsAddressEntity(this AddressContract addr, Guid userId)
        {
            if (addr == null)
            {
                return(null);
            }

            return(new Address()
            {
                AddressTypeId = (int)((EAddressType)Enum.Parse(typeof(EAddressType), addr.AddressType)),
                City = addr.City,
                State = addr.State,
                Country = addr.Country,
                Zip = addr.Zip,
                HouseNo = addr.HouseNo,
                Street = addr.Street,
                UserId = userId,
            });
        }
예제 #2
0
 private static Address ToAddress(AddressContract address)
 {
     throw new NotImplementedException();
 }