Exemple #1
0
 //accion guardar
 public ActionResult guardar(DetalleAsignacion objdetalleasignacion)
 {
     if (ModelState.IsValid)
     {
         objdetalleasignacion.guardar();
         return(Redirect("~/detalleasignacion"));
     }
     else
     {
         return(View("~/Views/detalleasignacion/agregareditar.cshtml", objdetalleasignacion));
     }
 }
Exemple #2
0
        //Accion Guardar
        public ActionResult Guardar(DetalleAsignacion objDetalleAsignacion)
        {
            if (ModelState.IsValid)
            {
                objDetalleAsignacion.Guardar();

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