Ejemplo n.º 1
0
 public ActionResult Create(CreatePlanilla modelo)
 {
     if (ModelState.IsValid)
     {
         planilla.Insertar(modelo.ID_TIPO, modelo.NOMBRE, DateTime.Parse(modelo.FECHA_INICIO), DateTime.Parse(modelo.FECHA_FINAL));
         return RedirectToAction("PlanillasList", "Planillas");
     }
     return View(modelo);
 }
Ejemplo n.º 2
0
 public ActionResult Create()
 {
     CreatePlanilla modelo = new CreatePlanilla();
     return View(modelo);
 }