Example #1
0
 public IItemCategoryLookupRepository itemCategoryLookupRepository()
 {
     if (_ItemCategoryLookupRepository == null)
     {
         _ItemCategoryLookupRepository = new ItemCategoryLookupRepository(_Context, _Logger, this);
     }
     return(_ItemCategoryLookupRepository);
 }
Example #2
0
        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);
        }