Exemplo n.º 1
0
        public override void OnPageLoad(object sender, EventArgs e)
        {
            base.OnPageLoad(sender, e);
            _Facade = new LotteryFacade(this);
            _VM     = new LotteryQueryVM();

            this.DataContext = _VM;
        }
Exemplo n.º 2
0
        public void Query(LotteryQueryVM vm, PagingInfo pagingInfo, EventHandler <RestClientEventArgs <dynamic> > callback)
        {
            var data = vm.ConvertVM <LotteryQueryVM, LotteryQueryFilter>();

            data.PagingInfo = pagingInfo;
            string relativeUrl = "/MKTService/Lottery/Query";

            restClient.QueryDynamicData(relativeUrl, data, callback);
        }