Ejemplo n.º 1
0
        public void ProcessRequest(HttpContext context)
        {
            string op        = Utilities.getParam(context, "op");
            string respuesta = "";

            switch (op)
            {
            case "getProducts":
                //Producto producto = ;
                respuesta += JsonConvert.SerializeObject(GestionProducto.getProducts());
                break;
            }

            context.Response.ContentType = "text/plain";
            context.Response.Write(respuesta);
        }
Ejemplo n.º 2
0
 private void crearObjetos()
 {
     gestionProducto = new GestionProducto();
 }