public IItemCategoryLookupRepository itemCategoryLookupRepository() { if (_ItemCategoryLookupRepository == null) { _ItemCategoryLookupRepository = new ItemCategoryLookupRepository(_Context, _Logger, this); } return(_ItemCategoryLookupRepository); }
public override async Task <List <ItemCategoryLookup> > GetPagedItemsAsync(DataGridParameters currentDataGridParameters) //int startPage, int currentPageSize) { IItemCategoryLookupRepository _itemCategoryLookupRepository = _AppUnitOfWork.itemCategoryLookupRepository(); //_gridSettings.TotalItems = await _itemCategoryLookupRepository.CountAsync(); // get the total number of items to use for paging. DataGridItems <ItemCategoryLookup> _dataGridItems = await _itemCategoryLookupRepository.GetPagedDataEagerWithFilterAndOrderByAsync(currentDataGridParameters); List <ItemCategoryLookup> _itemCategoryLookups = _dataGridItems.Entities.ToList(); _GridSettings.TotalItems = _dataGridItems.TotalRecordCount; return(_itemCategoryLookups); }