Exemplo n.º 1
0
        public async Task <string> pedidos()
        {
            string resp = "";

            try
            {
                List <Tabla_Pedido> pedidos   = new List <Tabla_Pedido>();
                ClsCargar           clsCargar = new ClsCargar();
                await Task.Run(() => { pedidos = clsCargar.CargarPedidoCliente("55555"); });

                ListaEst.ItemsSource  = null;
                LstPedido.ItemsSource = pedidos;
                resp = resp.ToString();
            }
            catch (Exception ex)
            {
                resp = ex.ToString();
            }
            return(resp);
        }