Open-source eCommerce platform for C# and ASP.NET Core 10 with MongoDB. Build multi-store shops and multi-vendor marketplaces with B2B/B2C, REST API, plugins, Vue 3 and Docker.
C# aspnet-corecsharpdockerdotnetecommerceecommerce-platformmongodbmulti-storemulti-vendornosqlonline-shopshoppingcart
Minor fix (#579)
Krzysztof Pajak888a6a8afa32
diff --git a/src/Web/Grand.Web/Controllers/CommonController.cs b/src/Web/Grand.Web/Controllers/CommonController.csindex 704ef0f69..757c48474 100644--- a/src/Web/Grand.Web/Controllers/CommonController.cs+++ b/src/Web/Grand.Web/Controllers/CommonController.cs@@ -152,7 +152,7 @@ public class CommonController : BasePublicController{var language = await _languageService.GetLanguageByCode(langCode);if (language == null)- return InvokeHttp404();+ return NotFound();if (!language.Published)language = _contextAccessor.WorkContext.WorkingLanguage;diff --git a/src/Web/Grand.Web/Controllers/ContactController.cs b/src/Web/Grand.Web/Controllers/ContactController.csindex c45557336..8f94d1887 100644--- a/src/Web/Grand.Web/Controllers/ContactController.cs+++ b/src/Web/Grand.Web/Controllers/ContactController.cs@@ -15,6 +15,7 @@ using Grand.Web.Common.Filters;using Grand.Web.Events;using Grand.Web.Models.Contact;using MediatR;+using Microsoft.AspNetCore.Http;using Microsoft.AspNetCore.Mvc;namespace Grand.Web.Controllers;@@ -39,7 +40,7 @@ public class ContactController : BasePublicController//available even when a store is closed[ClosedStore(true)][HttpGet]- public virtual async Task<ActionResult<ContactUsModel>> Index(+ public virtual async Task<IActionResult> Index([FromServices] StoreInformationSettings storeInformationSettings,[FromServices] IPageService pageService){@@ -62,7 +63,7 @@ public class ContactController : BasePublicController[AutoValidateAntiforgeryToken][ClosedStore(true)][DenySystemAccount]- public virtual async Task<ActionResult<ContactUsModel>> Index(+ public virtual async Task<IActionResult> Index([FromServices] StoreInformationSettings storeInformationSettings,[FromServices] IPageService pageService,ContactUsModel model)