From bf43bd81e1f7e17a96c3deeb0c493903cf53e163 Mon Sep 17 00:00:00 2001 From: Ali Yousefi Date: Wed, 31 Jan 2024 10:53:14 +0330 Subject: [PATCH 1/3] update packages --- .../EasyMicroservices.ContentsMicroservice.Domain.csproj | 2 +- .../EasyMicroservices.ContentsMicroservice.Tests.csproj | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/CSharp/EasyMicroservices.ContentsMicroservice.Domain/EasyMicroservices.ContentsMicroservice.Domain.csproj b/src/CSharp/EasyMicroservices.ContentsMicroservice.Domain/EasyMicroservices.ContentsMicroservice.Domain.csproj index b042368..d3f6dff 100644 --- a/src/CSharp/EasyMicroservices.ContentsMicroservice.Domain/EasyMicroservices.ContentsMicroservice.Domain.csproj +++ b/src/CSharp/EasyMicroservices.ContentsMicroservice.Domain/EasyMicroservices.ContentsMicroservice.Domain.csproj @@ -12,7 +12,7 @@ - + diff --git a/src/CSharp/EasyMicroservices.ContentsMicroservice.Tests/EasyMicroservices.ContentsMicroservice.Tests.csproj b/src/CSharp/EasyMicroservices.ContentsMicroservice.Tests/EasyMicroservices.ContentsMicroservice.Tests.csproj index e587789..0b5953a 100644 --- a/src/CSharp/EasyMicroservices.ContentsMicroservice.Tests/EasyMicroservices.ContentsMicroservice.Tests.csproj +++ b/src/CSharp/EasyMicroservices.ContentsMicroservice.Tests/EasyMicroservices.ContentsMicroservice.Tests.csproj @@ -19,7 +19,7 @@ - + From 9ba92de2aa1ba35e4fb9d9cb834f3ba5984a3095 Mon Sep 17 00:00:00 2001 From: Ali Yousefi Date: Wed, 31 Jan 2024 12:05:59 +0330 Subject: [PATCH 2/3] update packages --- .../EasyMicroservices.ContentsMicroservice.Domain.csproj | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/CSharp/EasyMicroservices.ContentsMicroservice.Domain/EasyMicroservices.ContentsMicroservice.Domain.csproj b/src/CSharp/EasyMicroservices.ContentsMicroservice.Domain/EasyMicroservices.ContentsMicroservice.Domain.csproj index d3f6dff..761de4b 100644 --- a/src/CSharp/EasyMicroservices.ContentsMicroservice.Domain/EasyMicroservices.ContentsMicroservice.Domain.csproj +++ b/src/CSharp/EasyMicroservices.ContentsMicroservice.Domain/EasyMicroservices.ContentsMicroservice.Domain.csproj @@ -12,7 +12,7 @@ - + From baf8d31e86ceb9fba373cebde14ce0e26c04bbb0 Mon Sep 17 00:00:00 2001 From: Ali Yousefi Date: Wed, 31 Jan 2024 15:01:53 +0330 Subject: [PATCH 3/3] 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