public async Task <ICollection <Company> > GetAllNewCompany(int pageNumber, int pageSize) => await _context .Companies .Where(CompanyQuery.GetAllNewCompany()) .Skip((pageNumber - 1) * pageSize) .Take(pageSize) .AsNoTracking() .ToListAsync();
public async Task <int> CountNew() => await _context.Companies.Where(CompanyQuery.GetAllNewCompany()).CountAsync();