示例#1
0
        /************** ultima entrega *****************************************************************************/

        public ActionResult pvDelEmpresa(string txNIT)
        {
            if (Session["Admon"] == null)
            {
                return(RedirectToAction("LoginAdmon"));
            }

            if (txNIT != null)
            {
                if (!EMPRESA.existsEmpresa(txNIT))
                {
                    ViewBag.result = "NIT o cedula incorrectos, por favor ingrese de nuevo los datos e intentelo nuevamente !!!";
                }
                else
                {
                    ViewBag.result = EMPRESA.delEmpresa(txNIT);
                }
            }
            return(View());
        }