Example #1
0
 //accion guardar
 public ActionResult guardar(Servo objservo)
 {
     if (ModelState.IsValid)
     {
         objservo.guardar();
         return(Redirect("~/servo"));
     }
     else
     {
         return(View("~/Views/servo/agregareditar.cshtml", objservo));
     }
 }