public ActionResult SignupCC(CreditCardBillingModel model) { if (ModelState.IsValid) { //Attempt to register the user OrderData orderData = this.AddOrder(model); if (this._orderCreated) { //FormsService.SignIn(model.UserName, false /* createPersistentCookie */); //return RedirectToRoute(new { action = "Finish", orderId = orderData.OrderId }); //Response.Redirect("~/legacy/nmi.asp?OrderId=" + orderData.OrderId.ToString()); Response.Redirect("~/legacy/linkback.asp?OrderNumber=" + orderData.OrderId.ToString() + "&ResponseCode=A"); //string actionName = "JumpToCartContainer"; //return RedirectToRoute(new { action = actionName, memberId = orderData.MemberId, orderId = orderData.OrderId }); } else { ModelState.AddModelError("", "Could not create order"); } } CreditCardBillingModel billingModel = GetCreditCardBillingModel(model.MemberId); ModelUtility modelUtility = new ModelUtility(); ViewData["StateList"] = modelUtility.GetStateSelectList(billingModel.StateCode); ViewData["CountryList"] = modelUtility.GetCountrySelectList(billingModel.CountryCode); return(View(billingModel)); }
private void PopulateLists(RegisterModel model) { ModelUtility modelUtility = new ModelUtility(); ViewData["GenderList"] = modelUtility.GetGenderSelectList(model.Gender.ToString()); ViewData["SmokerList"] = modelUtility.GetSmokerSelectList(model.IsSmoker.ToString()); ViewData["StateList"] = modelUtility.GetStateSelectList(model.StateCode); ViewData["CountryList"] = modelUtility.GetCountrySelectList(model.CountryCode); ViewData["ContactByList"] = modelUtility.GetContactBySelectList(model.ContactBy.ToString()); ViewData["CitizenshipList"] = modelUtility.GetCitizenshipSelectList(model.Citizenship.ToString()); }
public ActionResult SignupCC(int?memberId) { if (memberId.HasValue) { CreditCardBillingModel billingModel = GetCreditCardBillingModel(memberId); ModelUtility modelUtility = new ModelUtility(); ViewData["StateList"] = modelUtility.GetStateSelectList(billingModel.StateCode); ViewData["CountryList"] = modelUtility.GetCountrySelectList(billingModel.CountryCode); return(View(billingModel)); } else { return(View()); } }