예제 #1
0
 public ActionResult Index()
 {
     if (Session["IdUsuario"] != null && Convert.ToInt16(Session["IdPerfil"]) == 1)
     {
         ViewBag.MenuPage = menu.listarMenu(Convert.ToInt16(Session["IdPerfil"]));
         return(View(empresa.listarEmpresa()));
     }
     else
     {
         return(RedirectToAction("Indexaf", "Home"));
     }
 }