|
|
|
@ -42,7 +42,7 @@ We've placed the `OrderPlacedEto` class inside the `ModularCrm.Ordering.Contract |
|
|
|
````csharp |
|
|
|
using System; |
|
|
|
|
|
|
|
namespace ModularCrm.Ordering.Contracts.Events |
|
|
|
namespace ModularCrm.Ordering.Events |
|
|
|
{ |
|
|
|
public class OrderPlacedEto |
|
|
|
{ |
|
|
|
@ -63,18 +63,16 @@ using System; |
|
|
|
using System.Collections.Generic; |
|
|
|
using System.Linq; |
|
|
|
using System.Threading.Tasks; |
|
|
|
using ModularCrm.Ordering.Contracts.Enums; |
|
|
|
using ModularCrm.Ordering.Contracts.Events; |
|
|
|
using ModularCrm.Ordering.Contracts.Services; |
|
|
|
using ModularCrm.Ordering.Enums; |
|
|
|
using ModularCrm.Ordering.Events; |
|
|
|
using ModularCrm.Ordering.Entities; |
|
|
|
using ModularCrm.Products.Integration; |
|
|
|
using Volo.Abp.Application.Services; |
|
|
|
using Volo.Abp.Domain.Repositories; |
|
|
|
using Volo.Abp.EventBus.Distributed; |
|
|
|
|
|
|
|
namespace ModularCrm.Ordering.Services; |
|
|
|
|
|
|
|
public class OrderAppService : ApplicationService, IOrderAppService |
|
|
|
public class OrderAppService : OrderingAppService, IOrderAppService |
|
|
|
{ |
|
|
|
private readonly IRepository<Order> _orderRepository; |
|
|
|
private readonly IProductIntegrationService _productIntegrationService; |
|
|
|
@ -88,7 +86,6 @@ public class OrderAppService : ApplicationService, IOrderAppService |
|
|
|
_orderRepository = orderRepository; |
|
|
|
_productIntegrationService = productIntegrationService; |
|
|
|
_distributedEventBus = distributedEventBus; |
|
|
|
ObjectMapperContext = typeof(OrderingWebModule); |
|
|
|
} |
|
|
|
|
|
|
|
public async Task<List<OrderDto>> GetListAsync() |
|
|
|
@ -174,7 +171,7 @@ Open the Product module's .NET solution in your IDE, locate the `ModularCrm.Prod |
|
|
|
Replace the `OrderEventHandler.cs` file's content with the following code block: |
|
|
|
|
|
|
|
````csharp |
|
|
|
using ModularCrm.Ordering.Contracts.Events; |
|
|
|
using ModularCrm.Ordering.Events; |
|
|
|
using System; |
|
|
|
using System.Threading.Tasks; |
|
|
|
using Volo.Abp.DependencyInjection; |
|
|
|
|