コード例 #1
0
 public List <ProductDto> GetAll()
 {
     return(repo.GetAll().Select(x => new ProductDto {
         Id = x.Id,
         Name = x.Name,
         Barcode = x.Barcode,
         Description = x.Description,
         Price = x.Price,
         Quantity = x.Quantity,
         Images = imageService.ProductImages(x.Id),
         Cover = imageService.Cover(x.Id),
     }).ToList());
 }