Beispiel #1
0
        public ActionResult updPassword(string txNIT)
        {
            string result = "";

            if (!EMPRESA.existsEmpresa(txNIT))
            {
                ViewBag.result = "NIT o cedula incorrectos, por favor ingrese de nuevo los datos e intentelo nuevamente !!!";
            }
            else
            {
                armarEmail(txNIT);
                ViewBag.result = "Se ha generado y enviado una nueva contraseña al correo !!!";
            }
            return(View(result));
        }
Beispiel #2
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());
        }