Esempio n. 1
0
        public List <ProductOutputDto> GetAll()
        {
            var list     = _productRepository.GetAll().ToList <AbstractProduct>();
            var entities = _productCreateAssembler.FromEntityList(list);

            return(entities);
        }
Esempio n. 2
0
        public List <ProductOutputDto> GetAll()
        {
            var entities = _productCreateAssembler.FromEntityList(_productRepository.GetAll().ToList());

            return(entities);
        }