diff --git a/services/ordering/src/EShopOnAbp.OrderingService.Application.Contracts/Orders/OrderDto.cs b/services/ordering/src/EShopOnAbp.OrderingService.Application.Contracts/Orders/OrderDto.cs index 7b0145e3..2ca2005c 100644 --- a/services/ordering/src/EShopOnAbp.OrderingService.Application.Contracts/Orders/OrderDto.cs +++ b/services/ordering/src/EShopOnAbp.OrderingService.Application.Contracts/Orders/OrderDto.cs @@ -12,5 +12,5 @@ public class OrderDto : EntityDto public string OrderStatus { get; set; } public BuyerDto Buyer { get; set; } public OrderAddressDto Address { get; set; } = new(); - public List Products { get; set; } = new(); + public List Items { get; set; } = new(); } \ No newline at end of file diff --git a/services/ordering/src/EShopOnAbp.OrderingService.Application/OrderingServiceApplicationAutoMapperProfile.cs b/services/ordering/src/EShopOnAbp.OrderingService.Application/OrderingServiceApplicationAutoMapperProfile.cs index 3247f98a..1b970541 100644 --- a/services/ordering/src/EShopOnAbp.OrderingService.Application/OrderingServiceApplicationAutoMapperProfile.cs +++ b/services/ordering/src/EShopOnAbp.OrderingService.Application/OrderingServiceApplicationAutoMapperProfile.cs @@ -18,7 +18,7 @@ namespace EShopOnAbp.OrderingService CreateMap() .Ignore(q => q.Address) - .Ignore(q => q.Products) + .Ignore(q => q.Items) .Ignore(q => q.Buyer); } } diff --git a/services/ordering/src/EShopOnAbp.OrderingService.Application/Orders/OrderAppService.cs b/services/ordering/src/EShopOnAbp.OrderingService.Application/Orders/OrderAppService.cs index 029c5c91..f13da7fb 100644 --- a/services/ordering/src/EShopOnAbp.OrderingService.Application/Orders/OrderAppService.cs +++ b/services/ordering/src/EShopOnAbp.OrderingService.Application/Orders/OrderAppService.cs @@ -73,7 +73,7 @@ public class OrderAppService : ApplicationService, IOrderAppService return new OrderDto() { Address = ObjectMapper.Map(placedOrder.Address), - Products = ObjectMapper.Map, List>(placedOrder.OrderItems), + Items = ObjectMapper.Map, List>(placedOrder.OrderItems), Buyer = ObjectMapper.Map(buyer), Id = placedOrder.Id, OrderDate = placedOrder.OrderDate,