public ActionResult AddDeliveryAddress(DeliveryAddressView deliveryAddressView) { DeliveryAddressAddRequest request = new DeliveryAddressAddRequest(); request.Address = deliveryAddressView; request.CustomerIdentityToken = _formsAuthentication.GetAuthenticationToken(); _customerService.AddDeliveryAddress(request); return Checkout(); }
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; }
public ActionResult AddDeliveryAddress() { DeliveryAddressView deliveryAddressView = new DeliveryAddressView(); return View("AddDeliveryAddress", deliveryAddressView); }
public ActionResult EditDeliveryAddress(DeliveryAddressView deliveryAddressView) { DeliveryAddressModifyRequest request = new DeliveryAddressModifyRequest(); request.Address = deliveryAddressView; request.CustomerIdentityToken = _formsAuthentication.GetAuthenticationToken(); _customerService.ModifyDeliveryAddress(request); return DeliveryAddresses(); }