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
Remove - redundant property names - redundant property names should be omitted in anonymous classes
supportc89fdb84c581
diff --git a/src/Web/Grand.Web.Admin/Controllers/AffiliateController.cs b/src/Web/Grand.Web.Admin/Controllers/AffiliateController.csindex 49249645f..e92bf250f 100644--- a/src/Web/Grand.Web.Admin/Controllers/AffiliateController.cs+++ b/src/Web/Grand.Web.Admin/Controllers/AffiliateController.cs@@ -174,7 +174,7 @@ namespace Grand.Web.Admin.Controllersreturn RedirectToAction("List");}Error(ModelState);- return RedirectToAction("Edit", new { id = id });+ return RedirectToAction("Edit", new { id });}[PermissionAuthorizeAction(PermissionActionName.Preview)]diff --git a/src/Web/Grand.Web.Admin/Controllers/BlogController.cs b/src/Web/Grand.Web.Admin/Controllers/BlogController.csindex 30f8f6361..feaf8e79b 100644--- a/src/Web/Grand.Web.Admin/Controllers/BlogController.cs+++ b/src/Web/Grand.Web.Admin/Controllers/BlogController.cs@@ -226,7 +226,7 @@ namespace Grand.Web.Admin.Controllersreturn RedirectToAction("List");}Error(ModelState);- return RedirectToAction("Edit", new { id = id });+ return RedirectToAction("Edit", new { id });}#endregiondiff --git a/src/Web/Grand.Web.Admin/Controllers/CampaignController.cs b/src/Web/Grand.Web.Admin/Controllers/CampaignController.csindex 994a81227..90f15dc11 100644--- a/src/Web/Grand.Web.Admin/Controllers/CampaignController.cs+++ b/src/Web/Grand.Web.Admin/Controllers/CampaignController.cs@@ -275,7 +275,7 @@ namespace Grand.Web.Admin.Controllersreturn RedirectToAction("List");}Error(ModelState);- return RedirectToAction("Edit", new { id = id });+ return RedirectToAction("Edit", new { id });}}}diff --git a/src/Web/Grand.Web.Admin/Controllers/ContactAttributeController.cs b/src/Web/Grand.Web.Admin/Controllers/ContactAttributeController.csindex c25958b6a..8beb175a1 100644--- a/src/Web/Grand.Web.Admin/Controllers/ContactAttributeController.cs+++ b/src/Web/Grand.Web.Admin/Controllers/ContactAttributeController.cs@@ -169,7 +169,7 @@ namespace Grand.Web.Admin.Controllersreturn RedirectToAction("List");}Error(ModelState);- return RedirectToAction("Edit", new { id = id });+ return RedirectToAction("Edit", new { id });}#endregiondiff --git a/src/Web/Grand.Web.Admin/Controllers/ContactFormController.cs b/src/Web/Grand.Web.Admin/Controllers/ContactFormController.csindex 89f7b5661..80cd4884f 100644--- a/src/Web/Grand.Web.Admin/Controllers/ContactFormController.cs+++ b/src/Web/Grand.Web.Admin/Controllers/ContactFormController.cs@@ -89,7 +89,7 @@ namespace Grand.Web.Admin.Controllersreturn RedirectToAction("List");}Error(ModelState);- return RedirectToAction("Details", new { id = id });+ return RedirectToAction("Details", new { id });}[HttpPost]diff --git a/src/Web/Grand.Web.Admin/Controllers/CountryController.cs b/src/Web/Grand.Web.Admin/Controllers/CountryController.csindex 67cb9993b..a86aa4678 100644--- a/src/Web/Grand.Web.Admin/Controllers/CountryController.cs+++ b/src/Web/Grand.Web.Admin/Controllers/CountryController.cs@@ -167,7 +167,7 @@ namespace Grand.Web.Admin.Controllersreturn RedirectToAction("List");}Error(ModelState);- return RedirectToAction("Edit", new { id = id });+ return RedirectToAction("Edit", new { id });}catch (Exception exc){diff --git a/src/Web/Grand.Web.Admin/Controllers/DocumentController.cs b/src/Web/Grand.Web.Admin/Controllers/DocumentController.csindex 623981617..262e428dd 100644--- a/src/Web/Grand.Web.Admin/Controllers/DocumentController.cs+++ b/src/Web/Grand.Web.Admin/Controllers/DocumentController.cs@@ -137,7 +137,7 @@ namespace Grand.Web.Admin.ControllersSuccess(_translationService.GetResource("Admin.Documents.Document.Deleted"));return RedirectToAction("List");}- return RedirectToAction("EditDocument", new { id = id });+ return RedirectToAction("EditDocument", new { id });}#region Document type@@ -239,7 +239,7 @@ namespace Grand.Web.Admin.ControllersSuccess(_translationService.GetResource("Admin.Documents.Type.Deleted"));return RedirectToAction("Types");}- return RedirectToAction("Edit", new { id = id });+ return RedirectToAction("Edit", new { id });}#endregiondiff --git a/src/Web/Grand.Web.Admin/Controllers/OrderController.cs b/src/Web/Grand.Web.Admin/Controllers/OrderController.csindex 6a083e5cd..78ae33e41 100644--- a/src/Web/Grand.Web.Admin/Controllers/OrderController.cs+++ b/src/Web/Grand.Web.Admin/Controllers/OrderController.cs@@ -251,7 +251,7 @@ namespace Grand.Web.Admin.Controllers//a vendor does not have access to this functionalityif (_workContext.CurrentVendor != null && !await _groupService.IsStaff(_workContext.CurrentCustomer))- return RedirectToAction("Edit", "Order", new { id = id });+ return RedirectToAction("Edit", "Order", new { id });if (await _groupService.IsStaff(_workContext.CurrentCustomer) && order.StoreId != _workContext.CurrentCustomer.StaffStoreId){@@ -264,13 +264,13 @@ namespace Grand.Web.Admin.Controllers_ = _orderViewModelService.LogEditOrder(order.Id);Success("Successfully canceled order");- return RedirectToAction("Edit", "Order", new { id = id });+ return RedirectToAction("Edit", "Order", new { id });}catch (Exception exc){//errorError(exc, true);- return RedirectToAction("Edit", "Order", new { id = id });+ return RedirectToAction("Edit", "Order", new { id });}}@@ -321,7 +321,7 @@ namespace Grand.Web.Admin.Controllers//a vendor does not have access to this functionalityif (_workContext.CurrentVendor != null && !await _groupService.IsStaff(_workContext.CurrentCustomer))- return RedirectToAction("Edit", "Order", new { id = id });+ return RedirectToAction("Edit", "Order", new { id });if (await _groupService.IsStaff(_workContext.CurrentCustomer) && order.StoreId != _workContext.CurrentCustomer.StaffStoreId){@@ -349,7 +349,7 @@ namespace Grand.Web.Admin.Controllers_ = _orderViewModelService.LogEditOrder(order.Id);model = new OrderModel();await _orderViewModelService.PrepareOrderDetailsModel(model, order);- return RedirectToAction("Edit", "Order", new { id = id });+ return RedirectToAction("Edit", "Order", new { id });}catch (Exception exc){@@ -357,7 +357,7 @@ namespace Grand.Web.Admin.Controllersmodel = new OrderModel();await _orderViewModelService.PrepareOrderDetailsModel(model, order);Error(exc, false);- return RedirectToAction("Edit", "Order", new { id = id });+ return RedirectToAction("Edit", "Order", new { id });}}@@ -401,7 +401,7 @@ namespace Grand.Web.Admin.Controllers//a vendor or staff does not have access to this functionalityif (_workContext.CurrentVendor != null || await _groupService.IsStaff(_workContext.CurrentCustomer))- return RedirectToAction("Edit", "Order", new { id = id });+ return RedirectToAction("Edit", "Order", new { id });var shipments = (await shipmentService.GetShipmentsByOrder(order.Id));if (shipments.Any())@@ -416,7 +416,7 @@ namespace Grand.Web.Admin.Controllersreturn RedirectToAction("List");}Error(ModelState);- return RedirectToAction("Edit", "Order", new { id = id });+ return RedirectToAction("Edit", "Order", new { id });}[PermissionAuthorizeAction(PermissionActionName.Delete)]@@ -559,11 +559,11 @@ namespace Grand.Web.Admin.Controllers//a vendor does not have access to this functionalityif (_workContext.CurrentVendor != null && !await _groupService.IsStaff(_workContext.CurrentCustomer))- return RedirectToAction("Edit", "Order", new { id = id });+ return RedirectToAction("Edit", "Order", new { id });if (await _groupService.IsStaff(_workContext.CurrentCustomer) && order.StoreId != _workContext.CurrentCustomer.StaffStoreId){- return RedirectToAction("Edit", "Order", new { id = id });+ return RedirectToAction("Edit", "Order", new { id });}order.OrderSubtotalInclTax = model.OrderSubtotalInclTaxValue;@@ -591,7 +591,7 @@ namespace Grand.Web.Admin.Controllers_ = _orderViewModelService.LogEditOrder(order.Id);await _orderViewModelService.PrepareOrderDetailsModel(model, order);- return RedirectToAction("Edit", "Order", new { id = id });+ return RedirectToAction("Edit", "Order", new { id });}[PermissionAuthorizeAction(PermissionActionName.Edit)][HttpPost]@@ -604,11 +604,11 @@ namespace Grand.Web.Admin.Controllers//a vendor does not have access to this functionalityif (_workContext.CurrentVendor != null && !await _groupService.IsStaff(_workContext.CurrentCustomer))- return RedirectToAction("Edit", "Order", new { id = id });+ return RedirectToAction("Edit", "Order", new { id });if (await _groupService.IsStaff(_workContext.CurrentCustomer) && order.StoreId != _workContext.CurrentCustomer.StaffStoreId){- return RedirectToAction("Edit", "Order", new { id = id });+ return RedirectToAction("Edit", "Order", new { id });}order.ShippingMethod = model.ShippingMethod;@@ -628,7 +628,7 @@ namespace Grand.Web.Admin.Controllers//selected tabawait SaveSelectedTabIndex(persistForTheNextRequest: true);- return RedirectToAction("Edit", "Order", new { id = id });+ return RedirectToAction("Edit", "Order", new { id });}[HttpPost]@@ -641,11 +641,11 @@ namespace Grand.Web.Admin.Controllers//a vendor does not have access to this functionalityif (_workContext.CurrentVendor != null && !await _groupService.IsStaff(_workContext.CurrentCustomer))- return RedirectToAction("Edit", "Order", new { id = id });+ return RedirectToAction("Edit", "Order", new { id });if (await _groupService.IsStaff(_workContext.CurrentCustomer) && order.StoreId != _workContext.CurrentCustomer.StaffStoreId){- return RedirectToAction("Edit", "Order", new { id = id });+ return RedirectToAction("Edit", "Order", new { id });}order.UserFields = model.UserFields;@@ -658,7 +658,7 @@ namespace Grand.Web.Admin.Controllers//selected tabawait SaveSelectedTabIndex(persistForTheNextRequest: true);- return RedirectToAction("Edit", "Order", new { id = id });+ return RedirectToAction("Edit", "Order", new { id });}[PermissionAuthorizeAction(PermissionActionName.Edit)]@@ -672,16 +672,16 @@ namespace Grand.Web.Admin.Controllers//a vendor does not have access to this functionalityif (_workContext.CurrentVendor != null && !await _groupService.IsStaff(_workContext.CurrentCustomer))- return RedirectToAction("Edit", "Order", new { id = id });+ return RedirectToAction("Edit", "Order", new { id });if (await _groupService.IsStaff(_workContext.CurrentCustomer) && order.StoreId != _workContext.CurrentCustomer.StaffStoreId){- return RedirectToAction("Edit", "Order", new { id = id });+ return RedirectToAction("Edit", "Order", new { id });}if (order.OrderStatusId == (int)OrderStatusSystem.Cancelled){Error("You can't edit position when order is canceled");- return RedirectToAction("Edit", "Order", new { id = id });+ return RedirectToAction("Edit", "Order", new { id });}//get order item identifier@@ -702,13 +702,13 @@ namespace Grand.Web.Admin.Controllersif (quantity == 0 || (orderItem.OpenQty != orderItem.Quantity && orderItem.IsShipEnabled)){Error("You can't change quantity");- return RedirectToAction("Edit", "Order", new { id = id });+ return RedirectToAction("Edit", "Order", new { id });}if (orderItem.Quantity == quantity && orderItem.UnitPriceExclTax == unitPriceExclTax){Error("Nothing has been changed");- return RedirectToAction("Edit", "Order", new { id = id });+ return RedirectToAction("Edit", "Order", new { id });}orderItem.Quantity = quantity;@@ -738,7 +738,7 @@ namespace Grand.Web.Admin.Controllers//selected tabawait SaveSelectedTabIndex(persistForTheNextRequest: true);- return RedirectToAction("Edit", "Order", new { id = id });+ return RedirectToAction("Edit", "Order", new { id });}[PermissionAuthorizeAction(PermissionActionName.Edit)]@@ -752,11 +752,11 @@ namespace Grand.Web.Admin.Controllers//a vendor does not have access to this functionalityif (_workContext.CurrentVendor != null && !await _groupService.IsStaff(_workContext.CurrentCustomer))- return RedirectToAction("Edit", "Order", new { id = id });+ return RedirectToAction("Edit", "Order", new { id });if (await _groupService.IsStaff(_workContext.CurrentCustomer) && order.StoreId != _workContext.CurrentCustomer.StaffStoreId){- return RedirectToAction("Edit", "Order", new { id = id });+ return RedirectToAction("Edit", "Order", new { id });}//get order item identifierstring orderItemId = "";@@ -775,7 +775,7 @@ namespace Grand.Web.Admin.Controllers//selected tabawait SaveSelectedTabIndex(persistForTheNextRequest: true);- return RedirectToAction("Edit", "Order", new { id = id });+ return RedirectToAction("Edit", "Order", new { id });}@@ -790,11 +790,11 @@ namespace Grand.Web.Admin.Controllers//a vendor does not have access to this functionalityif (_workContext.CurrentVendor != null && !await _groupService.IsStaff(_workContext.CurrentCustomer))- return RedirectToAction("Edit", "Order", new { id = id });+ return RedirectToAction("Edit", "Order", new { id });if (await _groupService.IsStaff(_workContext.CurrentCustomer) && order.StoreId != _workContext.CurrentCustomer.StaffStoreId){- return RedirectToAction("Edit", "Order", new { id = id });+ return RedirectToAction("Edit", "Order", new { id });}//get order item identifierstring orderItemId = "";@@ -816,7 +816,7 @@ namespace Grand.Web.Admin.Controllers//selected tabawait SaveSelectedTabIndex(persistForTheNextRequest: true);- return RedirectToAction("Edit", "Order", new { id = id });+ return RedirectToAction("Edit", "Order", new { id });}[PermissionAuthorizeAction(PermissionActionName.Edit)]@@ -830,7 +830,7 @@ namespace Grand.Web.Admin.Controllersif (await _groupService.IsStaff(_workContext.CurrentCustomer) && order.StoreId != _workContext.CurrentCustomer.StaffStoreId){- return RedirectToAction("Edit", "Order", new { id = id });+ return RedirectToAction("Edit", "Order", new { id });}//get order item identifier@@ -857,7 +857,7 @@ namespace Grand.Web.Admin.Controllers//selected tabawait SaveSelectedTabIndex(persistForTheNextRequest: true);- return RedirectToAction("Edit", "Order", new { id = id });+ return RedirectToAction("Edit", "Order", new { id });}[PermissionAuthorizeAction(PermissionActionName.Edit)]@@ -871,7 +871,7 @@ namespace Grand.Web.Admin.Controllersif (await _groupService.IsStaff(_workContext.CurrentCustomer) && order.StoreId != _workContext.CurrentCustomer.StaffStoreId){- return RedirectToAction("Edit", "Order", new { id = id });+ return RedirectToAction("Edit", "Order", new { id });}//get order item identifier@@ -897,7 +897,7 @@ namespace Grand.Web.Admin.Controllers//selected tabawait SaveSelectedTabIndex(persistForTheNextRequest: true);- return RedirectToAction("Edit", "Order", new { id = id });+ return RedirectToAction("Edit", "Order", new { id });}[PermissionAuthorizeAction(PermissionActionName.Edit)]@@ -910,7 +910,7 @@ namespace Grand.Web.Admin.Controllersif (await _groupService.IsStaff(_workContext.CurrentCustomer) && order.StoreId != _workContext.CurrentCustomer.StaffStoreId){- return RedirectToAction("Edit", "Order", new { id = id });+ return RedirectToAction("Edit", "Order", new { id });}var orderItem = order.OrderItems.FirstOrDefault(x => x.Id == orderItemId);diff --git a/src/Web/Grand.Web.Admin/Controllers/PageController.cs b/src/Web/Grand.Web.Admin/Controllers/PageController.csindex e44bcc705..d65bb039c 100644--- a/src/Web/Grand.Web.Admin/Controllers/PageController.cs+++ b/src/Web/Grand.Web.Admin/Controllers/PageController.cs@@ -196,7 +196,7 @@ namespace Grand.Web.Admin.Controllersreturn RedirectToAction("List");}Error(ModelState);- return RedirectToAction("Edit", new { id = id });+ return RedirectToAction("Edit", new { id });}#endregiondiff --git a/src/Web/Grand.Web.Admin/Controllers/PaymentTransactionController.cs b/src/Web/Grand.Web.Admin/Controllers/PaymentTransactionController.csindex d2547bf1b..9b5196ae5 100644--- a/src/Web/Grand.Web.Admin/Controllers/PaymentTransactionController.cs+++ b/src/Web/Grand.Web.Admin/Controllers/PaymentTransactionController.cs@@ -241,13 +241,13 @@ namespace Grand.Web.Admin.Controllersforeach (var error in errors)Error(error);- return RedirectToAction("Edit", "PaymentTransaction", new { id = id });+ return RedirectToAction("Edit", "PaymentTransaction", new { id });}catch (Exception exc){//errorError(exc, false);- return RedirectToAction("Edit", "PaymentTransaction", new { id = id });+ return RedirectToAction("Edit", "PaymentTransaction", new { id });}}@@ -268,13 +268,13 @@ namespace Grand.Web.Admin.Controllerstry{await _mediator.Send(new MarkAsPaidCommand() { PaymentTransaction = paymentTransaction });- return RedirectToAction("Edit", "PaymentTransaction", new { id = id });+ return RedirectToAction("Edit", "PaymentTransaction", new { id });}catch (Exception exc){//errorError(exc, false);- return RedirectToAction("Edit", "PaymentTransaction", new { id = id });+ return RedirectToAction("Edit", "PaymentTransaction", new { id });}}@@ -297,13 +297,13 @@ namespace Grand.Web.Admin.Controllersforeach (var error in errors)Error(error);- return RedirectToAction("Edit", "PaymentTransaction", new { id = id });+ return RedirectToAction("Edit", "PaymentTransaction", new { id });}catch (Exception exc){//errorError(exc, false);- return RedirectToAction("Edit", "PaymentTransaction", new { id = id });+ return RedirectToAction("Edit", "PaymentTransaction", new { id });}}@@ -323,13 +323,13 @@ namespace Grand.Web.Admin.Controllerstry{await _mediator.Send(new RefundOfflineCommand() { PaymentTransaction = paymentTransaction });- return RedirectToAction("Edit", "PaymentTransaction", new { id = id });+ return RedirectToAction("Edit", "PaymentTransaction", new { id });}catch (Exception exc){//errorError(exc, false);- return RedirectToAction("Edit", "PaymentTransaction", new { id = id });+ return RedirectToAction("Edit", "PaymentTransaction", new { id });}}@@ -352,13 +352,13 @@ namespace Grand.Web.Admin.Controllersforeach (var error in errors)Error(error);- return RedirectToAction("Edit", "PaymentTransaction", new { id = id });+ return RedirectToAction("Edit", "PaymentTransaction", new { id });}catch (Exception exc){//errorError(exc, false);- return RedirectToAction("Edit", "PaymentTransaction", new { id = id });+ return RedirectToAction("Edit", "PaymentTransaction", new { id });}}@@ -378,13 +378,13 @@ namespace Grand.Web.Admin.Controllerstry{await _mediator.Send(new VoidOfflineCommand() { PaymentTransaction = paymentTransaction });- return RedirectToAction("Edit", "PaymentTransaction", new { id = id });+ return RedirectToAction("Edit", "PaymentTransaction", new { id });}catch (Exception exc){//errorError(exc, false);- return RedirectToAction("Edit", "PaymentTransaction", new { id = id });+ return RedirectToAction("Edit", "PaymentTransaction", new { id });}}diff --git a/src/Web/Grand.Web.Admin/Controllers/ProductController.cs b/src/Web/Grand.Web.Admin/Controllers/ProductController.csindex 970d20948..f51bc9d9b 100644--- a/src/Web/Grand.Web.Admin/Controllers/ProductController.cs+++ b/src/Web/Grand.Web.Admin/Controllers/ProductController.cs@@ -304,7 +304,7 @@ namespace Grand.Web.Admin.Controllersreturn RedirectToAction("List");}Error(ModelState);- return RedirectToAction("Edit", new { id = id });+ return RedirectToAction("Edit", new { id });}[PermissionAuthorizeAction(PermissionActionName.Delete)]diff --git a/src/Web/Grand.Web.Admin/Controllers/ShippingController.cs b/src/Web/Grand.Web.Admin/Controllers/ShippingController.csindex ed6f95f56..49f614237 100644--- a/src/Web/Grand.Web.Admin/Controllers/ShippingController.cs+++ b/src/Web/Grand.Web.Admin/Controllers/ShippingController.cs@@ -462,7 +462,7 @@ namespace Grand.Web.Admin.Controllersreturn RedirectToAction("DeliveryDates");}Error(ModelState);- return RedirectToAction("EditDeliveryDate", new { id = id });+ return RedirectToAction("EditDeliveryDate", new { id });}#endregiondiff --git a/src/Web/Grand.Web.Admin/Controllers/VendorReviewController.cs b/src/Web/Grand.Web.Admin/Controllers/VendorReviewController.csindex 5d6babcae..8813146a7 100644--- a/src/Web/Grand.Web.Admin/Controllers/VendorReviewController.cs+++ b/src/Web/Grand.Web.Admin/Controllers/VendorReviewController.cs@@ -135,7 +135,7 @@ namespace Grand.Web.Admin.Controllersreturn RedirectToAction("List");}Error(ModelState);- return RedirectToAction("Edit", new { id = id });+ return RedirectToAction("Edit", new { id });}[HttpPost]diff --git a/src/Web/Grand.Web/Controllers/ActionCartController.cs b/src/Web/Grand.Web/Controllers/ActionCartController.csindex 6dc49e3bf..644f3f420 100644--- a/src/Web/Grand.Web/Controllers/ActionCartController.cs+++ b/src/Web/Grand.Web/Controllers/ActionCartController.cs@@ -239,7 +239,7 @@ namespace Grand.Web.Controllers{success = true,message = string.Format(_translationService.GetResource("Products.ProductHasBeenAddedToTheWishlist.Link"), Url.RouteUrl("Wishlist")),- updatetopwishlistsectionhtml = updatetopwishlistsectionhtml,+ updatetopwishlistsectionhtml,wishlistqty = qty,model = addtoCartModel});@@ -284,7 +284,7 @@ namespace Grand.Web.Controllers{success = true,message = string.Format(_translationService.GetResource("Products.ProductHasBeenAddedToTheCart.Link"), Url.RouteUrl("ShoppingCart")),- updatetopcartsectionhtml = updatetopcartsectionhtml,+ updatetopcartsectionhtml,sidebarshoppingcartmodel = miniShoppingCartmodel,model = addtoCartModel});@@ -596,7 +596,7 @@ namespace Grand.Web.Controllers{success = true,message = string.Format(_translationService.GetResource("Products.ProductHasBeenAddedToTheCart.Link"), Url.RouteUrl("ShoppingCart")),- updatetopcartsectionhtml = updatetopcartsectionhtml,+ updatetopcartsectionhtml,sidebarshoppingcartmodel = miniShoppingCartmodel,refreshreservation = product.ProductTypeId == ProductType.Reservation && product.IntervalUnitId != IntervalUnit.Day,model = addtoCartModeldiff --git a/src/Web/Grand.Web/Controllers/BasePublicController.cs b/src/Web/Grand.Web/Controllers/BasePublicController.csindex cfee5c8ef..1d00292ad 100644--- a/src/Web/Grand.Web/Controllers/BasePublicController.cs+++ b/src/Web/Grand.Web/Controllers/BasePublicController.cs@@ -45,7 +45,7 @@ namespace Grand.Web.Controllerspublic override RedirectToRouteResult RedirectToRoute(string routeName){if (IsJsonResponseView())- return RedirectToRoute("Route", new { routeName = routeName });+ return RedirectToRoute("Route", new { routeName });return base.RedirectToRoute(routeName);}diff --git a/src/Web/Grand.Web/Controllers/CommonController.cs b/src/Web/Grand.Web/Controllers/CommonController.csindex dfd332d7e..0082330b5 100644--- a/src/Web/Grand.Web/Controllers/CommonController.cs+++ b/src/Web/Grand.Web/Controllers/CommonController.cs@@ -469,7 +469,7 @@ namespace Grand.Web.Controllersreturn Json(new{html = await this.RenderPartialViewToString("PrivacyPreference", model, true),- model = model,+ model,});}diff --git a/src/Web/Grand.Web/Controllers/DownloadController.cs b/src/Web/Grand.Web/Controllers/DownloadController.csindex 71747423c..c275f9899 100644--- a/src/Web/Grand.Web/Controllers/DownloadController.cs+++ b/src/Web/Grand.Web/Controllers/DownloadController.cs@@ -95,7 +95,7 @@ namespace Grand.Web.Controllersif (product.HasUserAgreement){if (!agree)- return RedirectToRoute("DownloadUserAgreement", new { orderItemId = orderItemId });+ return RedirectToRoute("DownloadUserAgreement", new { orderItemId });}diff --git a/src/Web/Grand.Web/Controllers/ProductController.cs b/src/Web/Grand.Web/Controllers/ProductController.csindex 453f52e3a..1dc77eda1 100644--- a/src/Web/Grand.Web/Controllers/ProductController.cs+++ b/src/Web/Grand.Web/Controllers/ProductController.cs@@ -421,7 +421,7 @@ namespace Grand.Web.Controllers{success = true,product = true,- model = model,+ model,layoutPath = productLayoutViewPath});}diff --git a/src/Web/Grand.Web/Controllers/ShoppingCartController.cs b/src/Web/Grand.Web/Controllers/ShoppingCartController.csindex ffbabb4a2..2cec43a9a 100644--- a/src/Web/Grand.Web/Controllers/ShoppingCartController.cs+++ b/src/Web/Grand.Web/Controllers/ShoppingCartController.cs@@ -157,7 +157,7 @@ namespace Grand.Web.Controllers{enabledattributeids = enabledAttributeIds.ToArray(),disabledattributeids = disabledAttributeIds.ToArray(),- model = model,+ model,checkoutattributeinfo = await checkoutAttributeFormatter.FormatAttributes(checkoutAttributes, _workContext.CurrentCustomer),});}