public ActionResult Guardar(Criterio model) { if (ModelState.IsValid) { model.Guardar(); return(Redirect("~/BackEnd/Criterio")); } else { return(View("~/BackEnd/Views/Criterio/AgregarEditar.cshtml", model)); } }
//Accion Guardar public ActionResult Guardar(Criterio objCriterio) { if (ModelState.IsValid) { objCriterio.Guardar(); return(Redirect("~/Criterio")); } else { return(View("~/Views/Criterio/AgregarEditar.cshtml")); } }