public async Task <IActionResult> Create([Bind("idTarjeta,docPropietario,nombrePropietario,saldo,recarga")] tarjeta tarjeta) { if (ModelState.IsValid) { _context.Add(tarjeta); await _context.SaveChangesAsync(); return(RedirectToAction(nameof(Index))); } return(View(tarjeta)); }
public async Task <IActionResult> Create([Bind("idReserva,docSolicitante,estadoPago,metodoPago,cantidadSillas,fkIdTarjeta")] reserva reserva) { if (ModelState.IsValid) { _context.Add(reserva); await _context.SaveChangesAsync(); return(RedirectToAction(nameof(Index))); } return(View(reserva)); }
public async Task <IActionResult> Create([Bind("idSilla,fila,noSilla,tipo,estado")] silla silla) { if (ModelState.IsValid) { _context.Add(silla); await _context.SaveChangesAsync(); return(RedirectToAction(nameof(Index))); } return(View(silla)); }
public async Task <IActionResult> Create([Bind("noSala,ingreso")] sala sala) { if (ModelState.IsValid) { _context.Add(sala); await _context.SaveChangesAsync(); return(RedirectToAction(nameof(Index))); } return(View(sala)); }