コード例 #1
0
ファイル: HremployeeService.cs プロジェクト: linhlpv/IMS
        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());
        }
コード例 #2
0
ファイル: HremployeeService.cs プロジェクト: linhlpv/IMS
        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());
        }