//public ActionResult Cargar(int id) //{ // if (id == 1) // { // ViewBag.Message = "hola mundo"; // } // else // { // ViewBag.Message = "chao mundo"; // } // return View(); //} public ActionResult Cargar() { ClsCargar CargarOrdenCompra = new ClsCargar(); CargarOrdenCompra.CargarArchivos(); return(View()); }
public async Task <string> pedidosDetalle(string numero) { string resp = ""; try { List <ClsPropiedadesPedido> pedidos = new List <ClsPropiedadesPedido>(); ClsCargar clsCargar = new ClsCargar(); await Task.Run(() => { pedidos = clsCargar.CargarPedidoDetalle(numero); }); ListaEst.ItemsSource = null; ListaEst.ItemsSource = pedidos; resp = resp.ToString(); } catch (Exception ex) { resp = ex.ToString(); } return(resp); }
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); }