diff --git a/GanjooRazor/Areas/User/Pages/History.cshtml.cs b/GanjooRazor/Areas/User/Pages/History.cshtml.cs index 646e6737..1cc0756f 100644 --- a/GanjooRazor/Areas/User/Pages/History.cshtml.cs +++ b/GanjooRazor/Areas/User/Pages/History.cshtml.cs @@ -183,7 +183,6 @@ namespace GanjooRazor.Areas.User.Pages return BadRequest(JsonConvert.DeserializeObject(await response.Content.ReadAsStringAsync())); } - bool status = JsonConvert.DeserializeObject(await response.Content.ReadAsStringAsync()); if(Request.Cookies["KeepHistory"] != null) { Response.Cookies.Delete("KeepHistory"); @@ -192,7 +191,7 @@ namespace GanjooRazor.Areas.User.Pages { Expires = DateTime.Now.AddDays(365), }; - Response.Cookies.Append("KeepHistory", $"{status}", cookieOption); + Response.Cookies.Append("KeepHistory", $"{false}", cookieOption); } else @@ -225,7 +224,7 @@ namespace GanjooRazor.Areas.User.Pages { Expires = DateTime.Now.AddDays(365), }; - Response.Cookies.Append("KeepHistory", $"{status}", cookieOption); + Response.Cookies.Append("KeepHistory", $"{true}", cookieOption); } else diff --git a/GanjooRazor/appsettings.json b/GanjooRazor/appsettings.json index d390c52a..53c0d0bc 100644 --- a/GanjooRazor/appsettings.json +++ b/GanjooRazor/appsettings.json @@ -8,8 +8,8 @@ }, "AllowedHosts": "*", "GoogleAnalyticsCode": "", - "APIRoot": "https://api.ganjoor.net", - "GlobalAPIRoot": "https://api.ganjoor.net", + "APIRoot": "http://localhost:3439", + "GlobalAPIRoot": "http://localhost:3439", "SiteUrl": "http://localhost:33081", "AggressiveCacheEnabled": "False", "ReadOnlyMode": "False", diff --git a/RMuseum/Controllers/RGenericOptionsController.cs b/RMuseum/Controllers/RGenericOptionsController.cs index 8ba0939b..e3568d69 100644 --- a/RMuseum/Controllers/RGenericOptionsController.cs +++ b/RMuseum/Controllers/RGenericOptionsController.cs @@ -16,8 +16,7 @@ namespace RMuseum.Controllers /// constructor /// /// - /// - public RGenericOptionsController(IRGenericOptionsService optionsService, IMemoryCache memoryCache) : base(optionsService, memoryCache) + public RGenericOptionsController(IRGenericOptionsService optionsService) : base(optionsService) { } } diff --git a/RMuseum/RMuseum.csproj b/RMuseum/RMuseum.csproj index 4d67f3a0..bbd90ed3 100644 --- a/RMuseum/RMuseum.csproj +++ b/RMuseum/RMuseum.csproj @@ -21,7 +21,7 @@ - + diff --git a/RMuseum/RMuseum.xml b/RMuseum/RMuseum.xml index 544fb88d..38ff0f46 100644 --- a/RMuseum/RMuseum.xml +++ b/RMuseum/RMuseum.xml @@ -2004,12 +2004,11 @@ options - + constructor -