Example #1
0
        public List <ControllerDto> GetAllList()
        {
            var users = _controllerRepository.RetriveAllEntity();

            //使用AutoMapper进行实体转换
            return(Mapper.Map <List <ControllerDto> >(users));
        }