// GET: Envios public ActionResult Index() { if (Session["USER_DATA"] != null) { Dictionary <String, Object> user_data = (Dictionary <String, Object>)Session["USER_DATA"]; if (!bool.Parse(user_data["IsAuth"].ToString())) { return(Redirect("~/Home/Index/")); } else if (!user_data["RolName"].ToString().Equals("Operador")) { return(Redirect("~/Home/Index/")); } } else { return(Redirect("~/Home/Index/")); } ViewBag.Envios = Paquetes.GetAllPacks(); return(View()); }