public ActionResult MeinekeIndex(GetZipWithCityName model) { if (Request.Form["Brokkrr"] != null) { if (ModelState.IsValid) { Session["Location"] = model; Session["Company"] = "Brokkrr"; ViewBag.IsAuthorize = "UnAuthorize"; return(RedirectToAction("Insurance", "Insurances")); } } else if (Request.Form["Meineke"] != null) { if (ModelState.IsValid) { Session["Location"] = model; ViewBag.IsAuthorize = "UnAuthorize"; Session["Company"] = "Meineke"; return(RedirectToAction("MeinekeInsurance", "Insurances")); } } return(View()); }
public JsonResult JsonIndex(GetZipWithCityName model) { if (ModelState.IsValid) { Session["Location"] = model; Session["Company"] = "Brokkrr"; ViewBag.IsAuthorize = "UnAuthorize"; //return RedirectToAction("Insurance", "Insurances"); } return(Json(new { result = "Success" }, JsonRequestBehavior.AllowGet)); }
public ActionResult APSPHomePage(GetZipWithCityName model) { try { if (ModelState.IsValid) { Session["Location"] = model; //ViewBag.Company = "Meineke"; return(RedirectToAction("APSPInsurance", "Insurances")); } ViewBag.Initials = Session["Initials"]; } catch (Exception Ex) { } return(View()); }
public ActionResult Index(GetZipWithCityName model) { //if (Request.Form["Brokkrr"] != null) //{ if (ModelState.IsValid) { Session["Location"] = model; Session["Company"] = "Brokkrr"; Session["FromPage"] = "Index"; ViewBag.IsAuthorize = "UnAuthorize"; //if(model.Company=="Brokkrr") //{ // return RedirectToAction("Insurance", "Insurances"); //} //else if (model.Company == "Meineke") //{ // return RedirectToAction("MeinekeInsurance", "Insurances"); //} return(RedirectToAction("Insurance", "Insurances")); } //} //else if (Request.Form["Meineke"] != null) //{ // if (ModelState.IsValid) // { // Session["Location"] = model; // ViewBag.IsAuthorize = "UnAuthorize"; // Session["Company"] = "Meineke"; // return RedirectToAction("MeinekeInsurance", "Insurances"); // } //} return(View()); }