public async Task <Pagination <SystemConfigDto> > GetPaginationAsync(DataManager dataManager)
 {
     using (_dbContextScopeFactory.CreateReadOnly())
     {
         int count = _systemConfigRepository.GetAll().ExecuteCount(dataManager);
         List <SystemConfigDto> systemConfigs = new List <SystemConfigDto>();
         if (count > 0)
         {
             systemConfigs = await _systemConfigRepository
                             .Query <SystemConfigDto>().Execute(dataManager)
                             .ToListAsync();
         }
         return(new Pagination <SystemConfigDto>(count, systemConfigs));
     }
 }
Example #2
0
 public IEnumerable <SystemConfig> GetAll()
 {
     return(_systemConfigRepository.GetAll());
 }
Example #3
0
 public List <SystemConfig> GetListSystemConfig()
 {
     return(_systemConfigRepository.GetAll().ToList());
 }