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