Exemplo n.º 1
0
        internal override void ItemsListUpdateData(ItemsListRequest request)
        {
            var response = _subscriptionsRepository.GetPageByStudent(SelectedStudentId, new SearchPaginationRequest
            {
                SearchText = null,
                Limit      = request.Take,
                PageIndex  = request.PageIndex
            });

            ItemsListViewModel.SetResult(new ItemsListData <SubscriptionModel>
            {
                Items            = response.Items.Select(entity => _entityMapper.ToModel(entity)).ToArray(),
                PagesCount       = response.PagesCount,
                CurrentPageIndex = response.CurrentPageIndex
            });

            CurrentState = ItemsListEditState.NoSelected;
        }