예제 #1
0
        public IEnumerable <CategoryDto> GetList()
        {
            IEnumerable <Category> list = _domainService.List();

            return(Mapper.Map <IEnumerable <CategoryDto> >(list));
        }
예제 #2
0
        public IReadOnlyList <CategoryDto> GetList()
        {
            IReadOnlyList <Category> list = _domainService.List();

            return(Mapper.Map <IReadOnlyList <CategoryDto> >(list));
        }