Exemplo n.º 1
0
 public ActionResult Guardar(Semestre model)
 {
     if (ModelState.IsValid)
     {
         model.Guardar();
         return(Redirect("~/Semestre"));
     }
     else
     {
         return(View("~/Views/Semestre/AgregarEditar.cshtml", model));
     }
 }
Exemplo n.º 2
0
 //Action Guardar
 public ActionResult Guardar(Semestre objSemestre)
 {
     if (ModelState.IsValid)
     {
         objSemestre.Guardar();
         return(Redirect("~/Semestre"));
     }
     else
     {
         return(View("~/Views/Semestre/AgregarEditar"));
     }
 }
Exemplo n.º 3
0
 public ActionResult Guardar(Semestre model, string SemAnt)
 {
     if (ModelState.IsValid)
     {
         model.Guardar(SemAnt);
         return(Redirect("~/Admin/Semestre/Index/"));
     }
     else
     {
         return(View("~/Admin/Semestre/Index/AgregarEditar.cshtml", model));
     }
 }