Skip to content

Commit

Permalink
Fix language getall permission
Browse files Browse the repository at this point in the history
  • Loading branch information
Ali-YousefiTelori committed Jan 31, 2024
1 parent 9ba92de commit baf8d31
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down Expand Up @@ -85,7 +86,7 @@ public async Task<MessageContract<CategoryContract>> AddContentWithKey(AddConten
Console.WriteLine($"try add {request.Key}!");
using var categorylogic = unitOfWork.GetLongContractLogic<CategoryEntity, CreateCategoryRequestContract, UpdateCategoryRequestContract, CategoryContract>();
using var contentlogic = unitOfWork.GetLongContractLogic<ContentEntity, CreateContentRequestContract, UpdateContentRequestContract, ContentContract>();
using var languageLogic = unitOfWork.GetLongContractLogic<LanguageEntity, LanguageContract>();
using var languageLogic = unitOfWork.GetLongContractLogic<LanguageEntity, LanguageContract>(UniqueIdentityStrategy.Full);

var getCategoryResult = await categorylogic.GetByUniqueIdentity(request,
Cores.DataTypes.GetUniqueIdentityType.All
Expand Down

0 comments on commit baf8d31

Please sign in to comment.