diff --git a/src/CSharp/EasyMicroservices.ContentsMicroservice.WebApi/Controllers/ContentController.cs b/src/CSharp/EasyMicroservices.ContentsMicroservice.WebApi/Controllers/ContentController.cs index f7e0a5d..cd5d43f 100644 --- a/src/CSharp/EasyMicroservices.ContentsMicroservice.WebApi/Controllers/ContentController.cs +++ b/src/CSharp/EasyMicroservices.ContentsMicroservice.WebApi/Controllers/ContentController.cs @@ -4,6 +4,7 @@ using EasyMicroservices.Cores.AspCoreApi; using EasyMicroservices.Cores.AspEntityFrameworkCoreApi.Interfaces; using EasyMicroservices.Cores.Contracts.Requests; +using EasyMicroservices.Cores.DataTypes; using EasyMicroservices.ServiceContracts; using Microsoft.AspNetCore.Mvc; using Microsoft.EntityFrameworkCore; @@ -85,7 +86,7 @@ public async Task> AddContentWithKey(AddConten Console.WriteLine($"try add {request.Key}!"); using var categorylogic = unitOfWork.GetLongContractLogic(); using var contentlogic = unitOfWork.GetLongContractLogic(); - using var languageLogic = unitOfWork.GetLongContractLogic(); + using var languageLogic = unitOfWork.GetLongContractLogic(UniqueIdentityStrategy.Full); var getCategoryResult = await categorylogic.GetByUniqueIdentity(request, Cores.DataTypes.GetUniqueIdentityType.All