public IItemAttributeLookupRepository itemAttributeLookupRepository() { if (_ItemAttributeLookupRepository == null) { _ItemAttributeLookupRepository = new ItemAttributeLookupRepository(_Context, _Logger, this); } return(_ItemAttributeLookupRepository); }
public override async Task <List <ItemAttributeLookup> > GetPagedItemsAsync(DataGridParameters currentDataGridParameters) //int startPage, int currentPageSize) { IItemAttributeLookupRepository _itemAttributeLookupRepository = _AppUnitOfWork.itemAttributeLookupRepository(); //_gridSettings.TotalItems = await _ItemAttributeLookupRepository.CountAsync(); // get the total number of items to use for paging. DataGridItems <ItemAttributeLookup> _dataGridItems = await _itemAttributeLookupRepository.GetPagedDataEagerWithFilterAndOrderByAsync(currentDataGridParameters); List <ItemAttributeLookup> _ItemAttributeLookups = _dataGridItems.Entities.ToList(); _GridSettings.TotalItems = _dataGridItems.TotalRecordCount; return(_ItemAttributeLookups); }