public ActionResult Create() { if (Session["Perfil"] == null) { return(RedirectToAction("Index", "Login")); } if ((int)Session["Perfil"] == 2) { ViewBag.ListadoBodegas = _Combos.ObtenerBodegas("Sp_ListadoBodegas_ERP"); return(View("Create")); } return(RedirectToAction("Index", "Login")); }