コード例 #1
0
 public ActionResult AddDeliveryAddress(DeliveryAddressView deliveryAddressView)
 {
     DeliveryAddressAddRequest request = new DeliveryAddressAddRequest();
     request.Address = deliveryAddressView;
     request.CustomerIdentityToken = _formsAuthentication.GetAuthenticationToken();
     _customerService.AddDeliveryAddress(request);
     return Checkout();
 }
コード例 #2
0
 private void UpdateDeliveryAddressFrom(DeliveryAddressView deliveryAddressSource, DeliveryAddress deliveryAddressToUpdate)
 {
     deliveryAddressToUpdate.Name = deliveryAddressSource.Name;
     deliveryAddressToUpdate.AddressLine1 = deliveryAddressSource.AddressLine1;
     deliveryAddressToUpdate.AddressLine2 = deliveryAddressSource.AddressLine2;
     deliveryAddressToUpdate.City = deliveryAddressSource.City;
     deliveryAddressToUpdate.State = deliveryAddressSource.State;
     deliveryAddressToUpdate.Country = deliveryAddressSource.Country;
     deliveryAddressToUpdate.ZipCode = deliveryAddressSource.ZipCode;
 }
コード例 #3
0
 public ActionResult AddDeliveryAddress()
 {
     DeliveryAddressView deliveryAddressView = new DeliveryAddressView();
     return View("AddDeliveryAddress", deliveryAddressView);
 }
コード例 #4
0
 public ActionResult EditDeliveryAddress(DeliveryAddressView deliveryAddressView)
 {
     DeliveryAddressModifyRequest request = new DeliveryAddressModifyRequest();
     request.Address = deliveryAddressView;
     request.CustomerIdentityToken = _formsAuthentication.GetAuthenticationToken();
     _customerService.ModifyDeliveryAddress(request);
     return DeliveryAddresses();
 }