private void EditShippingInformation(AddressViewModel shippingAddress)
 {
     TransactionLibrary.EditShippingInformation(
         shippingAddress.FirstName,
         shippingAddress.LastName,
         shippingAddress.EmailAddress,
         shippingAddress.PhoneNumber,
         shippingAddress.MobilePhoneNumber,
         shippingAddress.CompanyName,
         shippingAddress.Line1,
         shippingAddress.Line2,
         shippingAddress.PostalCode,
         shippingAddress.City,
         shippingAddress.State,
         shippingAddress.Attention,
         shippingAddress.CountryId);
 }
Beispiel #2
0
 private void EditShippingInformation()
 {
     if (UseDIfferentShippingAddress.Checked)
     {
         TransactionLibrary.EditShippingInformation(
             shippingFirstName.Text,
             shippingLastName.Text,
             shippingEmail.Text,
             shippingPhone.Text,
             shippingMobile.Text,
             shippingCompany.Text,
             shippingStreet.Text,
             shippingStreetTwo.Text,
             shippingPostalCode.Text,
             shippingCity.Text,
             "",
             shippingAttention.Text,
             int.Parse(shippingCountry.SelectedValue));
     }
     else
     {
         TransactionLibrary.EditShippingInformation(
             billingFirstName.Text,
             billingLastName.Text,
             billingEmail.Text,
             billingPhone.Text,
             billingMobile.Text,
             billingCompany.Text,
             billingStreet.Text,
             billingStreetTwo.Text,
             billingPostalCode.Text,
             billingCity.Text,
             "",
             billingAttention.Text,
             int.Parse(billingCountry.SelectedValue));
     }
 }
        public ActionResult Index(AddressDetailsViewModel addressDetails)
        {
            TransactionLibrary.EditBillingInformation(
                addressDetails.BillingAddress.FirstName,
                addressDetails.BillingAddress.LastName,
                addressDetails.BillingAddress.EmailAddress,
                addressDetails.BillingAddress.PhoneNumber,
                addressDetails.BillingAddress.MobilePhoneNumber,
                addressDetails.BillingAddress.CompanyName,
                addressDetails.BillingAddress.Line1,
                addressDetails.BillingAddress.Line2,
                addressDetails.BillingAddress.PostalCode,
                addressDetails.BillingAddress.City,
                addressDetails.BillingAddress.State,
                addressDetails.BillingAddress.Attention,
                addressDetails.BillingAddress.CountryId);

            TransactionLibrary.EditShippingInformation(
                addressDetails.ShippingAddress.FirstName,
                addressDetails.ShippingAddress.LastName,
                addressDetails.ShippingAddress.EmailAddress,
                addressDetails.ShippingAddress.PhoneNumber,
                addressDetails.ShippingAddress.MobilePhoneNumber,
                addressDetails.ShippingAddress.CompanyName,
                addressDetails.ShippingAddress.Line1,
                addressDetails.ShippingAddress.Line2,
                addressDetails.ShippingAddress.PostalCode,
                addressDetails.ShippingAddress.City,
                addressDetails.ShippingAddress.State,
                addressDetails.ShippingAddress.Attention,
                addressDetails.ShippingAddress.CountryId);

            TransactionLibrary.ExecuteBasketPipeline();

            return(Redirect("/shipping"));
        }
Beispiel #4
0
        protected void SaveAndGoToShippingBtn_OnClick(object sender, EventArgs e)
        {
            TransactionLibrary.EditBillingInformation(
                BillingAddressFirstName.Text,
                BillingAddressLastName.Text,
                BillingAddressEmailAddress.Text,
                BillingAddressPhoneNumber.Text,
                BillingAddressMobilePhoneNumber.Text,
                BillingAddressCompanyName.Text,
                BillingAddressLine1.Text,
                BillingAddressLine2.Text,
                BillingAddressPostalCode.Text,
                BillingAddressCity.Text,
                string.Empty,
                BillingAddressAttention.Text,
                Int32.Parse(BillingAddressCountryDropDown.SelectedValue));

            TransactionLibrary.EditShippingInformation(
                ShippingAddressFirstName.Text,
                ShippingAddressLastName.Text,
                ShippingAddressEmailAddress.Text,
                ShippingAddressPhoneNumber.Text,
                ShippingAddressMobilePhoneNumber.Text,
                ShippingAddressCompanyName.Text,
                ShippingAddressLine1.Text,
                ShippingAddressLine2.Text,
                ShippingAddressPostalCode.Text,
                ShippingAddressCity.Text,
                string.Empty,
                ShippingAddressAttention.Text,
                Int32.Parse(ShippingAddressCountryDropDown.SelectedValue));

            TransactionLibrary.ExecuteBasketPipeline();

            Response.Redirect("/basket/shipment");
        }