Skip to content

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.

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.cs
index 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.Controllers
return 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.cs
index 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.Controllers
return RedirectToAction("List");
}
Error(ModelState);
- return RedirectToAction("Edit", new { id = id });
+ return RedirectToAction("Edit", new { id });
}
#endregion
diff --git a/src/Web/Grand.Web.Admin/Controllers/CampaignController.cs b/src/Web/Grand.Web.Admin/Controllers/CampaignController.cs
index 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.Controllers
return 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.cs
index 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.Controllers
return RedirectToAction("List");
}
Error(ModelState);
- return RedirectToAction("Edit", new { id = id });
+ return RedirectToAction("Edit", new { id });
}
#endregion
diff --git a/src/Web/Grand.Web.Admin/Controllers/ContactFormController.cs b/src/Web/Grand.Web.Admin/Controllers/ContactFormController.cs
index 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.Controllers
return 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.cs
index 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.Controllers
return 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.cs
index 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.Controllers
Success(_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.Controllers
Success(_translationService.GetResource("Admin.Documents.Type.Deleted"));
return RedirectToAction("Types");
}
- return RedirectToAction("Edit", new { id = id });
+ return RedirectToAction("Edit", new { id });
}
#endregion
diff --git a/src/Web/Grand.Web.Admin/Controllers/OrderController.cs b/src/Web/Grand.Web.Admin/Controllers/OrderController.cs
index 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 functionality
if (_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)
{
//error
Error(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 functionality
if (_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.Controllers
model = 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 functionality
if (_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.Controllers
return 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 functionality
if (_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 functionality
if (_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 tab
await 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 functionality
if (_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 tab
await 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 functionality
if (_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.Controllers
if (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 tab
await 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 functionality
if (_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 identifier
string orderItemId = "";
@@ -775,7 +775,7 @@ namespace Grand.Web.Admin.Controllers
//selected tab
await 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 functionality
if (_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 identifier
string orderItemId = "";
@@ -816,7 +816,7 @@ namespace Grand.Web.Admin.Controllers
//selected tab
await 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.Controllers
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 identifier
@@ -857,7 +857,7 @@ namespace Grand.Web.Admin.Controllers
//selected tab
await 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.Controllers
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 identifier
@@ -897,7 +897,7 @@ namespace Grand.Web.Admin.Controllers
//selected tab
await 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.Controllers
if (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.cs
index 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.Controllers
return RedirectToAction("List");
}
Error(ModelState);
- return RedirectToAction("Edit", new { id = id });
+ return RedirectToAction("Edit", new { id });
}
#endregion
diff --git a/src/Web/Grand.Web.Admin/Controllers/PaymentTransactionController.cs b/src/Web/Grand.Web.Admin/Controllers/PaymentTransactionController.cs
index 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.Controllers
foreach (var error in errors)
Error(error);
- return RedirectToAction("Edit", "PaymentTransaction", new { id = id });
+ return RedirectToAction("Edit", "PaymentTransaction", new { id });
}
catch (Exception exc)
{
//error
Error(exc, false);
- return RedirectToAction("Edit", "PaymentTransaction", new { id = id });
+ return RedirectToAction("Edit", "PaymentTransaction", new { id });
}
}
@@ -268,13 +268,13 @@ namespace Grand.Web.Admin.Controllers
try
{
await _mediator.Send(new MarkAsPaidCommand() { PaymentTransaction = paymentTransaction });
- return RedirectToAction("Edit", "PaymentTransaction", new { id = id });
+ return RedirectToAction("Edit", "PaymentTransaction", new { id });
}
catch (Exception exc)
{
//error
Error(exc, false);
- return RedirectToAction("Edit", "PaymentTransaction", new { id = id });
+ return RedirectToAction("Edit", "PaymentTransaction", new { id });
}
}
@@ -297,13 +297,13 @@ namespace Grand.Web.Admin.Controllers
foreach (var error in errors)
Error(error);
- return RedirectToAction("Edit", "PaymentTransaction", new { id = id });
+ return RedirectToAction("Edit", "PaymentTransaction", new { id });
}
catch (Exception exc)
{
//error
Error(exc, false);
- return RedirectToAction("Edit", "PaymentTransaction", new { id = id });
+ return RedirectToAction("Edit", "PaymentTransaction", new { id });
}
}
@@ -323,13 +323,13 @@ namespace Grand.Web.Admin.Controllers
try
{
await _mediator.Send(new RefundOfflineCommand() { PaymentTransaction = paymentTransaction });
- return RedirectToAction("Edit", "PaymentTransaction", new { id = id });
+ return RedirectToAction("Edit", "PaymentTransaction", new { id });
}
catch (Exception exc)
{
//error
Error(exc, false);
- return RedirectToAction("Edit", "PaymentTransaction", new { id = id });
+ return RedirectToAction("Edit", "PaymentTransaction", new { id });
}
}
@@ -352,13 +352,13 @@ namespace Grand.Web.Admin.Controllers
foreach (var error in errors)
Error(error);
- return RedirectToAction("Edit", "PaymentTransaction", new { id = id });
+ return RedirectToAction("Edit", "PaymentTransaction", new { id });
}
catch (Exception exc)
{
//error
Error(exc, false);
- return RedirectToAction("Edit", "PaymentTransaction", new { id = id });
+ return RedirectToAction("Edit", "PaymentTransaction", new { id });
}
}
@@ -378,13 +378,13 @@ namespace Grand.Web.Admin.Controllers
try
{
await _mediator.Send(new VoidOfflineCommand() { PaymentTransaction = paymentTransaction });
- return RedirectToAction("Edit", "PaymentTransaction", new { id = id });
+ return RedirectToAction("Edit", "PaymentTransaction", new { id });
}
catch (Exception exc)
{
//error
Error(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.cs
index 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.Controllers
return 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.cs
index 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.Controllers
return RedirectToAction("DeliveryDates");
}
Error(ModelState);
- return RedirectToAction("EditDeliveryDate", new { id = id });
+ return RedirectToAction("EditDeliveryDate", new { id });
}
#endregion
diff --git a/src/Web/Grand.Web.Admin/Controllers/VendorReviewController.cs b/src/Web/Grand.Web.Admin/Controllers/VendorReviewController.cs
index 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.Controllers
return 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.cs
index 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 = addtoCartModel
diff --git a/src/Web/Grand.Web/Controllers/BasePublicController.cs b/src/Web/Grand.Web/Controllers/BasePublicController.cs
index 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.Controllers
public 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.cs
index 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.Controllers
return 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.cs
index 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.Controllers
if (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.cs
index 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.cs
index 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),
});
}