public async Task <ActionResult> GetOrder(string id) { _services = new ProductChangeServices(); var products = await _services.GetOrderByCode(id); return(Json(products, JsonRequestBehavior.AllowGet)); }
private async void SearchImage() { var result = new OrderReqExtend(); result = await services.GetOrderByCode(NroPedido); if (result.Id > 0) { Visible = true; ClientName = result.ClientName; } else { Visible = false; ClientName = "Pedido NO encontrado"; } OnPropertyChanged("SearchImage"); }