private void EditBillingInformation(AddressViewModel billingAddress)
 {
     TransactionLibrary.EditBillingInformation(
         billingAddress.FirstName,
         billingAddress.LastName,
         billingAddress.EmailAddress,
         billingAddress.PhoneNumber,
         billingAddress.MobilePhoneNumber,
         billingAddress.CompanyName,
         billingAddress.Line1,
         billingAddress.Line2,
         billingAddress.PostalCode,
         billingAddress.City,
         billingAddress.State,
         billingAddress.Attention,
         billingAddress.CountryId);
 }
Пример #2
0
 private void EditBillingInformation()
 {
     TransactionLibrary.EditBillingInformation(
         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"));
        }
Пример #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");
        }