public long Count(UserEntity UserEntity, SearchHrEmployeeEntity SearchHrEmployeeEntity) { if (SearchHrEmployeeEntity == null) { SearchHrEmployeeEntity = new SearchHrEmployeeEntity(); } IQueryable <HrEmployee> HrEmployees = IMSContext.HrEmployees; HrEmployees = SearchHrEmployeeEntity.ApplyTo(HrEmployees); return(HrEmployees.Count()); }
public List <HrEmployeeEntity> Get(UserEntity UserEntity, SearchHrEmployeeEntity SearchHrEmployeeEntity) { if (SearchHrEmployeeEntity == null) { SearchHrEmployeeEntity = new SearchHrEmployeeEntity(); } IQueryable <HrEmployee> HrEmployees = IMSContext.HrEmployees; HrEmployees = SearchHrEmployeeEntity.ApplyTo(HrEmployees); HrEmployees = SearchHrEmployeeEntity.SkipAndTake(HrEmployees); return(HrEmployees.ToList().Select(h => new HrEmployeeEntity(h)).ToList()); }