From 04bb1c25dd2ed4a18344cd0c5e3b94f3e59814e0 Mon Sep 17 00:00:00 2001 From: "Amir.H Khademi" Date: Sat, 27 Jan 2024 11:29:03 +0330 Subject: [PATCH] fix : fix update category --- .version | 2 +- NetinaShop.Api/NetinaShop.Api.csproj | 4 ++-- .../ProductCategories/UpdateProductCategoryCommandHandler.cs | 2 +- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/.version b/.version index 43eadaf..492f8f9 100644 --- a/.version +++ b/.version @@ -1 +1 @@ -0.0.0.5 \ No newline at end of file +0.0.0.6 \ No newline at end of file diff --git a/NetinaShop.Api/NetinaShop.Api.csproj b/NetinaShop.Api/NetinaShop.Api.csproj index e023ccd..b74ce38 100644 --- a/NetinaShop.Api/NetinaShop.Api.csproj +++ b/NetinaShop.Api/NetinaShop.Api.csproj @@ -6,8 +6,8 @@ enable true Linux - 0.0.0.5 - 0.0.0.5 + 0.0.0.6 + 0.0.0.6 diff --git a/NetinaShop.Repository/Handlers/ProductCategories/UpdateProductCategoryCommandHandler.cs b/NetinaShop.Repository/Handlers/ProductCategories/UpdateProductCategoryCommandHandler.cs index 972456d..f92169c 100644 --- a/NetinaShop.Repository/Handlers/ProductCategories/UpdateProductCategoryCommandHandler.cs +++ b/NetinaShop.Repository/Handlers/ProductCategories/UpdateProductCategoryCommandHandler.cs @@ -37,7 +37,7 @@ public class UpdateProductCategoryCommandHandler : IRequestHandler().Add(newEnt); + _repositoryWrapper.SetRepository().Update(newEnt); await _repositoryWrapper.SaveChangesAsync(cancellationToken); return true; }