예제 #1
0
        // POST: api/Payment
        public void Post([FromBody] cards value)
        {
            cards    cart = new cards();
            crypting c    = new crypting();

            cart.add_card(ref mensaje_error, ref numero_error, value.Num_Tarjeta, c.encrypt(value.Mes_Exp), c.encrypt(value.Ano_Exp), c.encrypt(value.CVV), value.Monto, c.encrypt(value.Tipo), c.encrypt(value.Card_Type));
        }
예제 #2
0
        // POST: api/Puerta
        public void Post([FromBody] Puerta gate)
        {
            Puerta   puerta = new Puerta();
            crypting c      = new crypting();

            puerta.createGate(ref mensaje_error, ref numero_error, gate.Cod_Puerta, c.encrypt(gate.Numero_Puerta), c.encrypt(gate.Detalle), gate.UsernameC);
        }
예제 #3
0
        // PUT: api/Consecutivos/5
        public void Put(int id, [FromBody] Consecutivos cons)
        {
            Consecutivos x = new Consecutivos();
            crypting     c = new crypting();

            x.updateCons(ref mensaje_error, ref numero_error, c.encrypt(cons.Descripcion), c.encrypt(cons.Valor), c.encrypt(cons.Prefijo), c.encrypt(cons.Rango_Ini), c.encrypt(cons.Rango_Fin), cons.UsernameC, cons.UserCod);
        }
예제 #4
0
        // PUT: api/UsuarioPassword/5
        public void Put(int id, [FromBody] Usuario user)
        {
            Usuario  update = new Usuario();
            crypting c      = new crypting();

            update.updateUserPassword(ref mensaje_error, ref numero_error, c.encrypt(user.Username), c.encrypt(user.Password), user.UsernameC, user.UserCod);
        }
예제 #5
0
        // PUT: api/ConsecutivosUpdate/5
        public void Put(int id, [FromBody] Consecutivos cons)
        {
            Consecutivos x     = new Consecutivos();
            crypting     c     = new crypting();
            int          valor = Convert.ToInt32(cons.Valor) + 1;

            if (cons.Rango_Ini == "")
            {
                x.updateSpecificCons(ref mensaje_error, ref numero_error, c.encrypt(cons.Descripcion), c.encrypt(valor.ToString()), c.encrypt(cons.Rango_Ini), cons.UsernameC);
            }
            else
            {
                int rango_ini = Convert.ToInt32(cons.Rango_Ini) + 1;
                x.updateSpecificCons(ref mensaje_error, ref numero_error, c.encrypt(cons.Descripcion), c.encrypt(valor.ToString()), c.encrypt(rango_ini.ToString()), cons.UsernameC);
            }
        }
        // PUT: api/Usuario/5
        public void Put(int id, [FromBody] Usuario user)
        {
            Usuario  update = new Usuario();
            crypting c      = new crypting();

            update.updateUser(ref mensaje_error, ref numero_error, user.Username, c.encrypt(user.Rol), user.UsernameC);
        }
        // POST: api/Bitacora
        public void Post([FromBody] Bitacora bitacora)
        {
            Bitacora bitacora1 = new Bitacora();
            crypting c         = new crypting();

            bitacora1.CreateBitacora(ref mensaje_error, ref numero_error, bitacora.Cod_Registro, bitacora.Cod_User_FK, c.encrypt(bitacora.FechaTime), c.encrypt(bitacora.Tipo), c.encrypt(bitacora.Time),
                                     bitacora.Cod_Regis, c.encrypt(bitacora.Descripcion), c.encrypt(bitacora.RegistroDetalle));
        }
예제 #8
0
        // PUT: api/Payment/5
        public void Put(int id, [FromBody] cards value)
        {
            cards    cart = new cards();
            crypting c    = new crypting();

            cart.updatePayment(ref mensaje_error, ref numero_error, value.Num_Tarjeta, c.encrypt(value.Mes_Exp), c.encrypt(value.Ano_Exp), c.encrypt(value.CVV), value.Monto, c.encrypt(value.Tipo), c.encrypt(value.Card_Type));
        }
        // PUT: api/Vuelos/5
        public void Put(int id, [FromBody] Vuelos value)
        {
            Vuelos   flight = new Vuelos();
            crypting c      = new crypting();

            flight.UpdateFlight(ref mensaje_error, ref numero_error, value.Codigo_Vuelo, value.Codigo_Vuelo2, c.encrypt(value.Aerolinea), c.encrypt(value.Cod_Pais_FK), c.encrypt(value.Fecha), c.encrypt(value.Hora), c.encrypt(value.Estado), c.encrypt(value.Cod_Puerta_FK), value.CS, c.encrypt(value.Price), value.UsernameC);
        }
        // POST: api/Errors
        public void Post([FromBody] Errors error)
        {
            Errors   create = new Errors();
            crypting c      = new crypting();

            create.crearError(ref mensaje_error, ref numero_error, Errors.GlobalValue = Errors.GlobalValue + 1, c.encrypt(error.Error_Message), c.encrypt(error.Time), c.encrypt(error.Date), c.encrypt(error.Error_Number));
        }
        // POST: api/Pais
        public void Post([FromBody] Pais country)
        {
            Pais     pais = new Pais();
            crypting c    = new crypting();

            pais.create_country(ref mensaje_error, ref numero_error, country.Cod_Pais, c.encrypt(country.Nombre_Pais), c.encrypt(country.Imagen), country.UsernameC);
        }
예제 #12
0
        // PUT: api/easypay/5
        public void Put(int id, [FromBody] easy_pay value)
        {
            easy_pay account = new easy_pay();
            crypting c       = new crypting();

            account.updatePayment(ref mensaje_error, ref numero_error, value.Num_Cuenta, c.encrypt(value.Codigo_Seguridad), c.encrypt(value.Constrasena), value.Fondos);
        }
        // PUT: api/Pais/5
        public void Put(int id, [FromBody] Pais country)
        {
            Pais     pais = new Pais();
            crypting c    = new crypting();

            pais.update_country(ref mensaje_error, ref numero_error, country.Cod_Pais, country.Cod_Pais2, c.encrypt(country.Nombre_Pais), c.encrypt(country.Imagen), country.UsernameC, country.UserCod);
        }
예제 #14
0
        // POST: api/Consecutivos
        public void Post([FromBody] Consecutivos cons)
        {
            Consecutivos x = new Consecutivos();
            crypting     c = new crypting();

            x.createCons(ref mensaje_error, ref numero_error, Consecutivos.GlobalValue = Consecutivos.GlobalValue + 1, c.encrypt(cons.Descripcion), c.encrypt(cons.Valor), c.encrypt(cons.Prefijo), c.encrypt(cons.Rango_Ini), c.encrypt(cons.Rango_Fin), cons.UsernameC);
        }
예제 #15
0
        // PUT: api/Agencia/5
        public void Put(int id, [FromBody] Agencia airline)
        {
            Agencia  agency = new Agencia();
            crypting c      = new crypting();

            agency.update_airline(ref mensaje_error, ref numero_error, airline.Cod_Agencia, c.encrypt(airline.Nombre_Agencia), c.encrypt(airline.Imagen), airline.Cod_Pais_FK, c.encrypt(airline.Cod_Aerolinea), airline.UsernameC, airline.UserCod);
        }
        // POST: api/Usuario
        public void Post([FromBody] Usuario user)
        {
            Usuario  create = new Usuario();
            crypting c      = new crypting();

            create.crearUser(ref mensaje_error, ref numero_error, Usuario.GlobalValue = Usuario.GlobalValue + 1, c.encrypt(user.Username), c.encrypt(user.Password), c.encrypt("User"), c.encrypt(user.Email), c.encrypt(user.Question), c.encrypt(user.Answer), user.UsernameC);
        }
예제 #17
0
        // PUT: api/Puerta/5
        public void Put(int id, [FromBody] Puerta gate)
        {
            Puerta   puerta = new Puerta();
            crypting c      = new crypting();

            puerta.updateGate(ref mensaje_error, ref numero_error, gate.Cod_Puerta, gate.Cod_Puerta2, c.encrypt(gate.Numero_Puerta), c.encrypt(gate.Detalle), gate.UsernameC, gate.UserCod);
        }
예제 #18
0
        // POST: api/Carrito
        public void Post([FromBody] Carrito value)
        {
            Carrito  cart = new Carrito();
            crypting c    = new crypting();

            cart.add_cartItem(ref mensaje_error, ref numero_error, Carrito.GlobalValueIDCART = Carrito.GlobalValueIDCART + 1, value.Codigo_Vuelo, c.encrypt(value.Pais), c.encrypt(value.Precio));
        }
예제 #19
0
        // POST: api/Agencia
        public void Post([FromBody] Agencia airline)
        {
            Agencia  agency = new Agencia();
            crypting c      = new crypting();

            agency.createAirline(ref mensaje_error, ref numero_error, Agencia.GlobalValue = Agencia.GlobalValue + 1, c.encrypt(airline.Nombre_Agencia), c.encrypt(airline.Imagen), airline.Cod_Pais_FK, c.encrypt(airline.Cod_Aerolinea), airline.UsernameC);
        }