// DELETE: api/Agencia/5 public void Delete(int id, [FromBody] Agencia airline) { Agencia agency = new Agencia(); crypting c = new crypting(); agency.delete_airline(ref mensaje_error, ref numero_error, airline.Cod_Agencia, airline.UsernameC, airline.UserCod); }
// 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); }
// 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); }
// DELETE: api/Pais/5 public void Delete(int id, [FromBody] Pais country) { Pais pais = new Pais(); crypting c = new crypting(); pais.delete_country(ref mensaje_error, ref numero_error, country.Cod_Pais, country.UsernameC, country.UserCod); }
// 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); }
// 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/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); }
// 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/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); }
// 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); }
// 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); }
// 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); }
// 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)); }
// 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/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)); }
// 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/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)); }
// DELETE: api/Puerta/5 public void Delete(int id, [FromBody] Puerta gate) { Puerta puerta = new Puerta(); crypting c = new crypting(); puerta.delete_gate(ref mensaje_error, ref numero_error, gate.Cod_Puerta, gate.UsernameC, gate.UserCod); }
// 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); }
// 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); }
// 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)); }
// GET: api/Puerta/5 public Puerta Get(int id) { List <Puerta> gateList = new Puerta().getGates(ref mensaje_error, ref numero_error); crypting c = new crypting(); Puerta x = gateList.ElementAt(id); Puerta spes = new Puerta(); spes.Cod_Puerta = x.Cod_Puerta; spes.Numero_Puerta = c.decrypt(x.Numero_Puerta); spes.Detalle = c.decrypt(x.Detalle); return(spes); }
// GET: api/Pais/5 public Pais Get(int id) { List <Pais> countryList = new Pais().getAllCountries(ref mensaje_error, ref numero_error); crypting c = new crypting(); Pais x = countryList.ElementAt(id); Pais spes = new Pais(); spes.Cod_Pais = x.Cod_Pais; spes.Nombre_Pais = c.decrypt(x.Nombre_Pais); spes.Imagen = c.decrypt(x.Imagen); return(spes); }
// GET: api/Carrito/5 public Carrito Get(int id) { List <Carrito> item_carlist = new Carrito().cargar_carrito(ref mensaje_error, ref numero_error); crypting c = new crypting(); Carrito x = item_carlist.ElementAt(id); Carrito spes = new Carrito(); spes.Cod_Item = x.Cod_Item; spes.Codigo_Vuelo = x.Codigo_Vuelo; spes.Pais = c.decrypt(x.Pais); spes.Precio = c.decrypt(x.Precio); return(spes); }
// GET: api/easypay/5 public easy_pay Get(int id) { List <easy_pay> item_carlist = new easy_pay().cargar_easypay(ref mensaje_error, ref numero_error); crypting c = new crypting(); easy_pay x = item_carlist.ElementAt(id); easy_pay spes = new easy_pay(); spes.Num_Cuenta = x.Num_Cuenta; spes.Codigo_Seguridad = c.decrypt(x.Codigo_Seguridad); spes.Constrasena = c.decrypt(x.Constrasena); spes.Fondos = x.Fondos; return(spes); }
// GET: api/buyingdetails/5 public Compras_details Get(int id) { List <Compras_details> item_carlist = new Compras_details().cargar_compra_especifica(ref mensaje_error, ref numero_error, Compras_details.GlobalValueBUYCODE, Compras_details.GlobalValueUSER); crypting c = new crypting(); Compras_details x = item_carlist.ElementAt(id); Compras_details spes = new Compras_details(); spes.Codigo_Compra = x.Codigo_Compra; spes.Codigo_User = c.decrypt(x.Codigo_User); spes.Codigo_Vuelo = c.decrypt(x.Codigo_Vuelo); spes.Pais = c.decrypt(x.Pais); spes.Precio = c.decrypt(x.Precio); return(spes); }
// GET: api/reservationdetails/5 public reservation_details Get(int id) { List <reservation_details> item_carlist = new reservation_details().cargar_reserva_especifica(ref mensaje_error, ref numero_error, reservation_details.GlobalValueBUYCODE, reservation_details.GlobalValueUSER); crypting c = new crypting(); reservation_details x = item_carlist.ElementAt(id); reservation_details spes = new reservation_details(); spes.Booking_ID = x.Booking_ID; spes.Cod_User = c.decrypt(x.Cod_User); spes.Cod_Vuelo = c.decrypt(x.Cod_Vuelo); spes.Pais = c.decrypt(x.Pais); spes.Precio = c.decrypt(x.Precio); return(spes); }
// GET: api/FilteredAgency/5 public Agencia Get(int id) { List <Agencia> airlineList = new Agencia().getFilteredAgencias(ref mensaje_error, ref numero_error, Agencia.GlobalValueCountry); crypting c = new crypting(); Agencia x = airlineList.ElementAt(id); Agencia spes = new Agencia(); spes.Cod_Agencia = x.Cod_Agencia; spes.Nombre_Agencia = c.decrypt(x.Nombre_Agencia); spes.Imagen = c.decrypt(x.Imagen); spes.Cod_Pais_FK = x.Cod_Pais_FK; spes.Cod_Aerolinea = c.decrypt(x.Cod_Aerolinea); return(spes); }
// GET: api/Errors/5 public Errors Get(int id) //ID de Error o ID de de error de SQL? Ojete { List <Errors> listaError = new Errors().cargar_lista_errores(ref mensaje_error, ref numero_error); crypting c = new crypting(); Errors x = listaError.ElementAt(id); //ojete con la x, es necesaria en errors? Errors spes = new Errors(); spes.Error_ID = x.Error_ID; //x.Error_ID; spes.Error_Message = c.decrypt(x.Error_Message); spes.Time = c.decrypt(x.Time); spes.Date = c.decrypt(x.Date); spes.Error_Number = c.decrypt(x.Error_Number); return(spes); }
// GET: api/ErrorsFilterByDateRangeController/5 public Errors Get(int id) { List <Errors> bitacoras = new Errors().GetErrorsUserFilteredbyDateRange(ref mensaje_error, ref numero_error, Errors.GlobalValueFilterDateIni, Errors.GlobalValueFilterDateFin); crypting c = new crypting(); Errors x = bitacoras.ElementAt(id); Errors spes = new Errors(); spes.Error_ID = x.Error_ID; spes.Error_Message = c.decrypt(x.Error_Message); spes.Time = c.decrypt(x.Time); spes.Date = c.decrypt(x.Date); spes.Error_Number = c.decrypt(x.Error_Number); return(spes); }