public ActionResult ActEmpresa(int id) { if (Session["IdUsuario"] != null && Convert.ToInt16(Session["IdPerfil"]) == 1) { empresa.actEmpresa(id); return(RedirectToAction("Index")); } else { return(RedirectToAction("Indexaf", "Home")); } }