Esempio n. 1
0
        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());
        }
Esempio n. 2
0
        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));
        }
Esempio n. 3
0
 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());
 }
Esempio n. 4
0
        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());
        }