public override void OnPageLoad(object sender, EventArgs e) { base.OnPageLoad(sender, e); _Facade = new GroupBuyingLotteryFacade(this); _VM = new GroupBuyingLotteryQueryVM(); this.DataContext = _VM; }
public void Query(GroupBuyingLotteryQueryVM vm, PagingInfo pagingInfo, EventHandler <RestClientEventArgs <dynamic> > callback) { var data = vm.ConvertVM <GroupBuyingLotteryQueryVM, GroupBuyingLotteryQueryFilter>(); data.PagingInfo = pagingInfo; string relativeUrl = "/MKTService/GroupBuyingLottery/Query"; restClient.QueryDynamicData(relativeUrl, data, callback); }