diff --git a/Netina.Api/AppSettings/appsettings.DevelopmentVesmeh.json b/Netina.Api/AppSettings/appsettings.DevelopmentVesmeh.json
index 3ac4912..8610861 100644
--- a/Netina.Api/AppSettings/appsettings.DevelopmentVesmeh.json
+++ b/Netina.Api/AppSettings/appsettings.DevelopmentVesmeh.json
@@ -1,8 +1,8 @@
{
"ConnectionStrings": {
"PostgresServer": "Host=185.220.227.246;Username=vesmmehAgent;Password=g05CTjK358Vx3Eoc9satsWyVwo+15UmsA2dnCrZRUYh1pLTe;Database=NetinaShopDB;Application Name=NetinaShopApi",
- "Postgres": "Host=pg-0,pg-1;Username=igarsonAgent;Password=xHTpBf4wC+bBeNg2pL6Ga7VEWKFJx7VPEUpqxwPFfOc2YYTVwFQuHfsiqoVeT9+6;Database=NetinaShopDB;Load Balance Hosts=true;Target Session Attributes=primary;Application Name=iGLS",
- "MartenDB": "Host=pg-0,pg-1;Username=igarsonAgent;Password=xHTpBf4wC+bBeNg2pL6Ga7VEWKFJx7VPEUpqxwPFfOc2YYTVwFQuHfsiqoVeT9+6;Database=NetinaShopMartenDB;"
+ "Postgres": "Host=pg-0;Username=postgres;Password=xHTpBf4wC+bBeNg2pL6Ga7VEWKFJx7VPEUpqxwPFfOc2YYTVwFQuHfsiqoVeT9+6;Database=NetinaShopDB",
+ "MartenDB": "Host=pg-0;Username=postgres;Password=xHTpBf4wC+bBeNg2pL6Ga7VEWKFJx7VPEUpqxwPFfOc2YYTVwFQuHfsiqoVeT9+6;Database=NetinaShopMartenDB"
},
"Logging": {
"LogLevel": {
diff --git a/Netina.Api/Netina.Api.csproj b/Netina.Api/Netina.Api.csproj
index d84a3e8..fcdf1e1 100644
--- a/Netina.Api/Netina.Api.csproj
+++ b/Netina.Api/Netina.Api.csproj
@@ -11,35 +11,35 @@
-
+
-
+
-
-
-
+
+
+
all
runtime; build; native; contentfiles; analyzers; buildtransitive
-
+
all
runtime; build; native; contentfiles; analyzers; buildtransitive
-
+
-
-
-
+
+
+
@@ -48,11 +48,11 @@
-
-
+
+
-
+
diff --git a/Netina.Api/Sentry/9DC334EC83D3BBA80249F4426A4CB422C68089AE/.installation b/Netina.Api/Sentry/9DC334EC83D3BBA80249F4426A4CB422C68089AE/.installation
new file mode 100644
index 0000000..52b8fd7
--- /dev/null
+++ b/Netina.Api/Sentry/9DC334EC83D3BBA80249F4426A4CB422C68089AE/.installation
@@ -0,0 +1 @@
+9167d171-2373-44c9-9fa5-a91858e9854d
\ No newline at end of file
diff --git a/Netina.Common/Extensions/StringExtensions.cs b/Netina.Common/Extensions/StringExtensions.cs
index 88f2fa1..95d59a7 100644
--- a/Netina.Common/Extensions/StringExtensions.cs
+++ b/Netina.Common/Extensions/StringExtensions.cs
@@ -5,6 +5,9 @@ namespace Netina.Common.Extensions
{
public static class StringExtensions
{
+ public static bool IsNullOrEmpty(this string value)
+ => string.IsNullOrEmpty(value);
+
public static string GetSlug(string title)
{
return HttpUtility.UrlEncode(title.Replace(' ', '-'));
diff --git a/Netina.Common/Netina.Common.csproj b/Netina.Common/Netina.Common.csproj
index a752020..86c51c9 100644
--- a/Netina.Common/Netina.Common.csproj
+++ b/Netina.Common/Netina.Common.csproj
@@ -1,6 +1,6 @@
-
+
+
-
+
diff --git a/Netina.Core/Netina.Core.csproj b/Netina.Core/Netina.Core.csproj
index 4a9947b..338e582 100644
--- a/Netina.Core/Netina.Core.csproj
+++ b/Netina.Core/Netina.Core.csproj
@@ -12,8 +12,8 @@
-
-
+
+
diff --git a/Netina.Domain/Netina.Domain.csproj b/Netina.Domain/Netina.Domain.csproj
index 742bd87..892e6e1 100644
--- a/Netina.Domain/Netina.Domain.csproj
+++ b/Netina.Domain/Netina.Domain.csproj
@@ -1,6 +1,6 @@
-
+
-
+
diff --git a/Netina.Infrastructure/Netina.Infrastructure.csproj b/Netina.Infrastructure/Netina.Infrastructure.csproj
index 99a2ca1..80db44a 100644
--- a/Netina.Infrastructure/Netina.Infrastructure.csproj
+++ b/Netina.Infrastructure/Netina.Infrastructure.csproj
@@ -8,8 +8,8 @@
-
-
+
+
diff --git a/Netina.Repository/Handlers/Products/GetProductQueryHandler.cs b/Netina.Repository/Handlers/Products/GetProductQueryHandler.cs
index ac71894..c9c74e6 100644
--- a/Netina.Repository/Handlers/Products/GetProductQueryHandler.cs
+++ b/Netina.Repository/Handlers/Products/GetProductQueryHandler.cs
@@ -2,19 +2,12 @@
namespace Netina.Repository.Handlers.Products;
-public class GetProductQueryHandler : IRequestHandler
+public class GetProductQueryHandler(IRepositoryWrapper repositoryWrapper, IMediator mediator)
+ : IRequestHandler
{
- private readonly IRepositoryWrapper _repositoryWrapper;
- private readonly IMediator _mediator;
-
- public GetProductQueryHandler(IRepositoryWrapper repositoryWrapper,IMediator mediator)
- {
- _repositoryWrapper = repositoryWrapper;
- _mediator = mediator;
- }
public async Task Handle(GetProductQuery request, CancellationToken cancellationToken)
{
- var ent = await _repositoryWrapper.SetRepository().TableNoTracking
+ var ent = await repositoryWrapper.SetRepository().TableNoTracking
.Where(b => b.Id == request.Id)
.Select(ProductMapper.ProjectToLDto)
.FirstOrDefaultAsync(cancellationToken);
@@ -22,7 +15,7 @@ public class GetProductQueryHandler : IRequestHandler
-
+
-
-
+
+
all
runtime; build; native; contentfiles; analyzers; buildtransitive
-
+
all
runtime; build; native; contentfiles; analyzers; buildtransitive
-
+
diff --git a/Tools/NetinaShop.WordPressDBConverter/Netina.WordPressDBConverter.csproj b/Tools/NetinaShop.WordPressDBConverter/Netina.WordPressDBConverter.csproj
index 1708a01..4ba533a 100644
--- a/Tools/NetinaShop.WordPressDBConverter/Netina.WordPressDBConverter.csproj
+++ b/Tools/NetinaShop.WordPressDBConverter/Netina.WordPressDBConverter.csproj
@@ -8,7 +8,7 @@
-
+