- @if(TempData.ContainsKey("BasketInoperativeMsg"))
+ @if(ViewBag.BasketInoperativeMsg != null)
{
- @TempData["BasketInoperativeMsg"]
+ @ViewBag.BasketInoperativeMsg
}
diff --git a/src/Web/WebMVC/Views/Shared/Components/CartList/Default.cshtml b/src/Web/WebMVC/Views/Shared/Components/CartList/Default.cshtml
index 091365e1e..ac188e0fe 100644
--- a/src/Web/WebMVC/Views/Shared/Components/CartList/Default.cshtml
+++ b/src/Web/WebMVC/Views/Shared/Components/CartList/Default.cshtml
@@ -5,21 +5,21 @@
}
- @if (TempData.ContainsKey("BasketInoperativeMsg"))
+ @if (ViewBag.BasketInoperativeMsg != null)
{
- @TempData["BasketInoperativeMsg"]
+ @ViewBag.BasketInoperativeMsg
}
else
{
- @if (TempData.ContainsKey("BasketInoperativeMsg"))
+ @if (ViewBag.BasketInoperativeMsg != null)
{
- @TempData["BasketInoperativeMsg"]
+ @ViewBag.BasketInoperativeMsg
}
diff --git a/src/Web/WebMVC/WebMVC.csproj b/src/Web/WebMVC/WebMVC.csproj
index 47603f10f..7c403e1de 100644
--- a/src/Web/WebMVC/WebMVC.csproj
+++ b/src/Web/WebMVC/WebMVC.csproj
@@ -24,6 +24,7 @@
+
@@ -39,7 +40,6 @@
-
diff --git a/src/Web/WebSPA/Startup.cs b/src/Web/WebSPA/Startup.cs
index 243976d8f..3f2354b97 100644
--- a/src/Web/WebSPA/Startup.cs
+++ b/src/Web/WebSPA/Startup.cs
@@ -3,13 +3,14 @@ using Microsoft.ApplicationInsights.Extensibility;
using Microsoft.ApplicationInsights.ServiceFabric;
using Microsoft.AspNetCore.Antiforgery;
using Microsoft.AspNetCore.Builder;
+using Microsoft.AspNetCore.DataProtection;
using Microsoft.AspNetCore.Hosting;
-using Microsoft.eShopOnContainers.BuildingBlocks;
using Microsoft.Extensions.Configuration;
using Microsoft.Extensions.DependencyInjection;
using Microsoft.Extensions.HealthChecks;
using Microsoft.Extensions.Logging;
using Newtonsoft.Json.Serialization;
+using StackExchange.Redis;
using System;
using System.IO;
using WebSPA.Infrastructure;
@@ -64,7 +65,7 @@ namespace eShopConContainers.WebSPA
{
opts.ApplicationDiscriminator = "eshop.webspa";
})
- .PersistKeysToRedis(Configuration["DPConnectionString"]);
+ .PersistKeysToRedis(ConnectionMultiplexer.Connect(Configuration["DPConnectionString"]), "DataProtection-Keys");
}
services.AddAntiforgery(options => options.HeaderName = "X-XSRF-TOKEN");
diff --git a/src/Web/WebSPA/WebSPA.csproj b/src/Web/WebSPA/WebSPA.csproj
index 308dc5324..5440ee30e 100644
--- a/src/Web/WebSPA/WebSPA.csproj
+++ b/src/Web/WebSPA/WebSPA.csproj
@@ -32,6 +32,7 @@
+
@@ -61,7 +62,6 @@
-->
-
@@ -76,4 +76,6 @@
+
+
diff --git a/test/Services/UnitTest/Catalog/Application/CatalogControllerTest.cs b/test/Services/UnitTest/Catalog/Application/CatalogControllerTest.cs
index 4b4a63817..58d32c212 100644
--- a/test/Services/UnitTest/Catalog/Application/CatalogControllerTest.cs
+++ b/test/Services/UnitTest/Catalog/Application/CatalogControllerTest.cs
@@ -44,7 +44,7 @@ namespace UnitTest.Catalog.Application
//Act
var orderController = new CatalogController(_catalogServiceMock.Object);
- var actionResult = await orderController.Index(fakeBrandFilterApplied, fakeTypesFilterApplied, fakePage);
+ var actionResult = await orderController.Index(fakeBrandFilterApplied, fakeTypesFilterApplied, fakePage, null);
//Assert
var viewResult = Assert.IsType(actionResult);