Exemplo n.º 1
0
        public override async Task GetPageData(int pageIndex)
        {
            try
            {
                var r = await service.GetGroupListAsync(new QueryParameters()
                {
                    PageIndex = PageIndex,
                    PageSize  = PageSize,
                    Search    = SearchText
                });

                if (r != null && r.success)
                {
                    GridModelList   = new ObservableCollection <Group>();
                    this.TotalCount = r.dynamicObj.TotalCount;
                    r.dynamicObj.Items?.ToList().ForEach(arg =>
                    {
                        GridModelList.Add(arg);
                    });
                    base.SetPageCount();
                }
            }
            catch (Exception ex)
            {
                Log.Error(ex.Message);
            }
        }