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