From baf8d31e86ceb9fba373cebde14ce0e26c04bbb0 Mon Sep 17 00:00:00 2001 From: Ali Yousefi Date: Wed, 31 Jan 2024 15:01:53 +0330 Subject: [PATCH] Fix language getall permission --- .../Controllers/ContentController.cs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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