Example #1
0
        public ShippingModels.ShippingBillingOrder GetCustomerInfo()
        {
            var shippingAddress = new ShippingModels.ShippingBillingOrder
            {
                ShippingFirstName = RegexLib.GetRegexResponse(RegexLib.PatternName, value: HttpContext.Current.Request.QueryString["sFirstName"])
                ,
                ShippingLastName = RegexLib.GetRegexResponse(RegexLib.PatternName, value: HttpContext.Current.Request.QueryString["sLastName"])
                ,
                ShippingAddress1 = RegexLib.GetRegexResponse(RegexLib.PatternAddress, value: HttpContext.Current.Request.QueryString["sAddress1"])
                ,
                ShippingAddress2 = RegexLib.GetRegexResponse(RegexLib.PatternAddress, value: HttpContext.Current.Request.QueryString["sAddress2"])
                ,
                ShippingCity = RegexLib.GetRegexResponse(RegexLib.PatternCity, value: HttpContext.Current.Request.QueryString["sCity"])
                ,
                ShippingState = RegexLib.GetRegexResponse(RegexLib.PatternState, value: HttpContext.Current.Request.QueryString["sState"])
                ,
                ShippingZipCode = RegexLib.GetRegexResponse(RegexLib.PatternZipcode, value: HttpContext.Current.Request.QueryString["sZipCode"])
                ,
                ShippingEmail = RegexLib.GetRegexResponse(RegexLib.PatternEMail, value: HttpContext.Current.Request.QueryString["email"])
                ,
                ShippingConfirmEmail = RegexLib.GetRegexResponse(RegexLib.PatternEMail, value: HttpContext.Current.Request.QueryString["confEmail"])
                ,
                ShippingPhone = RegexLib.GetRegexResponse(RegexLib.PatternPhone, value: HttpContext.Current.Request.QueryString["phone1"])
            };

            return shippingAddress;
        }
 public ActionResult four_for_1_spring2()
 {
     ViewData["StatesList"] = UtilitiesModels.GetStateNameList();
     ViewData["GenderList"] = UtilitiesModels.GetChildGenderNameList();
     ViewData["MonthList"] = UtilitiesModels.GetMonthNameList();
     ViewData["YearList"] = UtilitiesModels.GetCardExpiryYearList();
     OfferService offerService = new OfferService();
     ShippingModels.ShippingBillingOrder customerdata = new ShippingModels.ShippingBillingOrder();
     customerdata = offerService.GetCustomerInfo();
     return View(customerdata);
     // return View();
 }