public List <ProductOutputDto> GetAll() { var list = _productRepository.GetAll().ToList <AbstractProduct>(); var entities = _productCreateAssembler.FromEntityList(list); return(entities); }
public List <ProductOutputDto> GetAll() { var entities = _productCreateAssembler.FromEntityList(_productRepository.GetAll().ToList()); return(entities); }