Exemple #1
0
        public ActionResult Ingresar(Proyecto oProy)
        {
            string sError = "";

            oProy.Guardar(out sError);
            oProy.Cargar(out sError);

            return(View(oProy));
        }
Exemple #2
0
        public ActionResult vpIngresar()
        {
            string   sError = "";
            Proyecto oProy  = new Proyecto();

            oProy.Cargar(out sError);
            ViewBag.Error = sError;

            return(PartialView(oProy));
        }
Exemple #3
0
        public ActionResult Ingresar()
        {
            try
            {
                string   sError = "";
                Proyecto oProy  = new Proyecto();
                oProy.Cargar(out sError);


                ViewBag.Error = sError;

                return(View(oProy));
            }
            catch (Exception ex)
            {
                ViewBag.Error = ex.Message;
                return(View());
            }
        }