示例#1
0
        public IEnumerable <PriceDto> GetAll()
        {
            var prices    = _priceRepository.AllIncluding(p => p.Product);
            var pricesDto = _mapper.Map <IEnumerable <Price>, IEnumerable <PriceDto> >(prices);

            return(pricesDto);
        }