Exemple #1
0
        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));
        }
Exemple #2
0
        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));
        }
Exemple #3
0
        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));
        }
Exemple #4
0
        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));
        }