Exemplo n.º 1
0
        public List <EmployeModel> GetEmployeList(int pageIndex, int pageSize)
        {
            IAccountLogic  IComponent = container.Resolve <IAccountLogic>();
            List <Employe> list       = IComponent.GetEmployeList(pageIndex, pageSize);

            Mapper.CreateMap <Employe, EmployeModel>(); // 配置
            List <EmployeModel> resultList = Mapper.Map <List <Employe>, List <EmployeModel> >(list);

            return(resultList);
        }