Пример #1
0
 public ActionResult EditaEmpresa(int id)
 {
     if (Session["IdUsuario"] != null && Convert.ToInt16(Session["IdPerfil"]) == 1)
     {
         ViewBag.MenuPage = menu.listarMenu(Convert.ToInt16(Session["IdPerfil"]));
         return(View(empresa.traeEmpresa(id)));
     }
     else
     {
         return(RedirectToAction("Indexaf", "Home"));
     }
 }