public void Query(HomePageSectionQueryVM queryVM, PagingInfo p, EventHandler <RestClientEventArgs <dynamic> > callback) { var queryFilter = queryVM.ConvertVM <HomePageSectionQueryVM, HomePageSectionQueryFilter>(); queryFilter.CompanyCode = CPApplication.Current.CompanyCode; queryFilter.PagingInfo = p; string relativeUrl = "/MKTService/HomePageSection/Query"; restClient.QueryDynamicData(relativeUrl, queryFilter, callback); }
public override void OnPageLoad(object sender, EventArgs e) { base.OnPageLoad(sender, e); _queryVM = new HomePageSectionQueryVM(); this.DataContext = _queryVM; }