示例#1
0
 public ActionResult Guardar(Semestre model)
 {
     if (ModelState.IsValid)
     {
         model.Guardar();
         return(Redirect("~/Semestre"));
     }
     else
     {
         return(View("~/Views/Semestre/AgregarEditar.cshtml", model));
     }
 }
示例#2
0
 //Action Guardar
 public ActionResult Guardar(Semestre objSemestre)
 {
     if (ModelState.IsValid)
     {
         objSemestre.Guardar();
         return(Redirect("~/Semestre"));
     }
     else
     {
         return(View("~/Views/Semestre/AgregarEditar"));
     }
 }
示例#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));
     }
 }