public override void Update(Abstract entity)
        {
            var basket = (Basket)entity;

            CurrencyCode   = basket.CurrencyCode;
            CurrencySymbol = basket.CurrencySymbol;
            Discount       = basket.Discount;
        }
Exemple #2
0
        public override void Update(Abstract entity)
        {
            var product = (Product)entity;

            BacketId    = product.BacketId;
            Description = product.Description;
            Name        = product.Name;
            Price       = product.Price;
            Quantity    = product.Quantity;
        }
        public override void Update(Abstract entity)
        {
            var invoice = (Invoice)entity;

            Address1      = invoice.Address1;
            Address2      = invoice.Address2;
            Address3      = invoice.Address3;
            Address4      = invoice.Address4;
            Address5      = invoice.Address5;
            CountryCode   = invoice.CountryCode;
            Email         = invoice.Email;
            FirstName     = invoice.FirstName;
            LastName      = invoice.LastName;
            MiddleName    = invoice.MiddleName;
            Number        = invoice.Number;
            PayPalOrderId = invoice.PayPalOrderId;
            PayPalPayerId = invoice.PayPalPayerId;
            PostCode      = invoice.PostCode;
            Prefix        = invoice.Prefix;
            Suffix        = invoice.Suffix;
        }
 public abstract void Update(Abstract entity);