public ActionResult Ingresar(Proyecto oProy) { string sError = ""; oProy.Guardar(out sError); oProy.Cargar(out sError); return(View(oProy)); }
public ActionResult vpIngresar() { string sError = ""; Proyecto oProy = new Proyecto(); oProy.Cargar(out sError); ViewBag.Error = sError; return(PartialView(oProy)); }
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()); } }