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

                return(Redirect("~/Criterio"));
            }
            else
            {
                return(View("~/Views/Criterio/AgregarEditar.cshtml"));
            }
        }