Ejemplo n.º 1
0
 public void AddAddress(Customer customer, Address address)
 {
     customer.Addresses.Add(address);
     _customerRepository.Database.SaveChanges();
 }
Ejemplo n.º 2
0
 public ShippingAddressChanged(ShoppingCart cart, Address address)
 {
     CartId = cart.Id;
     ShippingAddressId = address.Id;
 }