Example #1
0
        public List <Promocion> ObtenerHabitacionPorId(int id)
        {
            GetHelper <PrecioDia> .Url = _url;
            var queryParams = new Dictionary <string, string>
            {
                { "habitacionId", id.ToString() },
            };

            return(GetHelper <Promocion> .GetListPorId(queryParams, "obtenerPromocionesPorHabitacion"));
        }
Example #2
0
        public List <Producto> ObtenerProductosPorHotel(int hotelId)
        {
            GetHelper <PrecioDia> .Url = _url;
            var queryParams = new Dictionary <string, string>
            {
                { "hotelId", hotelId.ToString() },
            };

            return(GetHelper <Producto> .GetListPorId(queryParams, "obtenerProductosPorHotel"));
        }
Example #3
0
        public List <PrecioDia> ObtenerPrecioDiaPorFecha(DateTime fecha)
        {
            GetHelper <PrecioDia> .Url = _url;
            var queryParams = new Dictionary <string, string>
            {
                { "fecha", fecha.ToString() },
            };

            return(GetHelper <PrecioDia> .GetListPorId(queryParams, "obtenerPrecioDiaPorFecha"));
        }
Example #4
0
        public Producto ObtenerProductoPorId(int id)
        {
            GetHelper <PrecioDia> .Url = _url;
            var queryParams = new Dictionary <string, string>
            {
                { "id", id.ToString() },
            };

            return(GetHelper <Producto> .Get(queryParams, "obtenerProductoPorId"));
        }