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 unused IFormCollection (SubAccountEditCommand)

support3efd15429946
diff --git a/src/Web/Grand.Web/Commands/Models/Customers/SubAccountEditCommand.cs b/src/Web/Grand.Web/Commands/Models/Customers/SubAccountEditCommand.cs
index 72ab35570..c7cea0de2 100644
--- a/src/Web/Grand.Web/Commands/Models/Customers/SubAccountEditCommand.cs
+++ b/src/Web/Grand.Web/Commands/Models/Customers/SubAccountEditCommand.cs
@@ -2,7 +2,6 @@
using Grand.Domain.Stores;
using Grand.Web.Models.Customer;
using MediatR;
-using Microsoft.AspNetCore.Http;
namespace Grand.Web.Commands.Models.Customers
{
@@ -11,6 +10,5 @@ namespace Grand.Web.Commands.Models.Customers
public Customer CurrentCustomer { get; set; }
public Store Store { get; set; }
public SubAccountModel Model { get; set; }
- public IFormCollection Form { get; set; }
}
}
diff --git a/src/Web/Grand.Web/Controllers/AccountController.cs b/src/Web/Grand.Web/Controllers/AccountController.cs
index bc7539fd9..e9a04d71b 100644
--- a/src/Web/Grand.Web/Controllers/AccountController.cs
+++ b/src/Web/Grand.Web/Controllers/AccountController.cs
@@ -1332,7 +1332,7 @@ namespace Grand.Web.Controllers
[HttpPost]
[AutoValidateAntiforgeryToken]
- public virtual async Task<IActionResult> SubAccountEdit(SubAccountModel model, IFormCollection form)
+ public virtual async Task<IActionResult> SubAccountEdit(SubAccountModel model)
{
if (!await _groupService.IsRegistered(_workContext.CurrentCustomer))
return Challenge();
@@ -1345,7 +1345,6 @@ namespace Grand.Web.Controllers
var result = await _mediator.Send(new SubAccountEditCommand() {
CurrentCustomer = _workContext.CurrentCustomer,
Model = model,
- Form = form,
Store = _workContext.CurrentStore
});