示例#1
0
        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"));
            }
        }