public List <EmployeeCompany> GetByRange(int skip, string word, EStatusUser status) { int take = 12; return(_context.EmployeeCompany .Include("Company") .Include("User") .Include("User.ProfileUser") .Include("SectorCompany") .Where(EmployeeCompanySpecs.GetEmployeeCompany(word, status)) .OrderBy(x => x.IdCompany).Skip((skip - 1) * take).Take(take).ToList()); }
public int GetCount(string word, EStatusUser status) { return(_context.EmployeeCompany.Where(EmployeeCompanySpecs.GetEmployeeCompany(word, status)).Count()); }