feat: Из dal перенесены все модели в Domain. Из dal переименованы service в repository, вынесены в Core.
This commit is contained in:
@@ -3,9 +3,9 @@ using Microsoft.Extensions.DependencyInjection;
|
||||
using Microsoft.Extensions.Logging;
|
||||
using PARR.Core.Common.Interfaces;
|
||||
using PARR.Core.Common.Interfaces.RabbitServices;
|
||||
using PARR.DAL.Models;
|
||||
using PARR.DAL.Services.Interfaces;
|
||||
using PARR.Core.Repositories.Interfaces;
|
||||
using PARR.Domain.Common.Rabbit.Messages;
|
||||
using PARR.Domain.Entities;
|
||||
using PARR.Domain.Enums;
|
||||
using PARR.EsppOrderManager.Services;
|
||||
using PARR.EsppOrderManager.Settings;
|
||||
@@ -70,7 +70,7 @@ namespace PARR.EsppOrderManager
|
||||
|
||||
using (var scope = serviceProvider.CreateScope())
|
||||
{
|
||||
var orderService = scope.ServiceProvider.GetService<IOrderService>();
|
||||
var orderService = scope.ServiceProvider.GetService<IOrderRepository>();
|
||||
if (orderService == null)
|
||||
throw new Exception("Не смог получить серивс IOrderService, scope.ServiceProvider.GetService<IOrderService>()");
|
||||
|
||||
@@ -81,7 +81,7 @@ namespace PARR.EsppOrderManager
|
||||
}
|
||||
|
||||
|
||||
private async Task ManageOrderToScopeAsync(IOrderService orderService, OrderManageMq objFromQuery)
|
||||
private async Task ManageOrderToScopeAsync(IOrderRepository orderService, OrderManageMq objFromQuery)
|
||||
{
|
||||
var order = await orderService.Get()
|
||||
.Include(t => t.AgentHistories).ThenInclude(t => t.AgentHistoryLevel)
|
||||
|
||||
Reference in New Issue
Block a user