public void QueryCustomer(CustomerSimpleQueryVM vm, PagingInfo p, EventHandler <RestClientEventArgs <dynamic> > callback) { var data = vm.ConvertVM <CustomerSimpleQueryVM, CustomerSimpleQueryFilter>(); data.PagingInfo = p; data.CompanyCode = CPApplication.Current.CompanyCode; string relativeUrl = "/CustomerService/Customer/Picker"; restClient.QueryDynamicData(relativeUrl, data, callback); }
public UCCustomerSearch() { InitializeComponent(); this.Grid.DataContext = _viewModel = new CustomerSimpleQueryVM(); this.Loaded += new RoutedEventHandler(UCCustomerSearch_Loaded); }