From 42fb5c73be4674c07d1f427b69b6b5a3b55198bd Mon Sep 17 00:00:00 2001 From: ahmetfarukulu Date: Mon, 21 Oct 2024 14:57:18 +0300 Subject: [PATCH] Refactor module creation dialog in ABP Studio for modular CRM tutorial --- docs/en/tutorials/modular-crm/part-07.md | 13 +++++-------- 1 file changed, 5 insertions(+), 8 deletions(-) diff --git a/docs/en/tutorials/modular-crm/part-07.md b/docs/en/tutorials/modular-crm/part-07.md index 5ddba71421..510e5675b3 100644 --- a/docs/en/tutorials/modular-crm/part-07.md +++ b/docs/en/tutorials/modular-crm/part-07.md @@ -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 _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> 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;