Ejemplo n.º 1
0
        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());
        }
Ejemplo n.º 2
0
        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());
        }