Fix profile update routing issue (#564)
This commit is contained in:
committed by
GitHub
parent
97320e16ca
commit
c02efcd4be
@@ -67,7 +67,7 @@ namespace Microsoft.eShopWeb.Web.Controllers
|
||||
|
||||
[HttpPost]
|
||||
[ValidateAntiForgeryToken]
|
||||
public async Task<IActionResult> Index(IndexViewModel model)
|
||||
public async Task<IActionResult> MyAccount(IndexViewModel model)
|
||||
{
|
||||
if (!ModelState.IsValid)
|
||||
{
|
||||
@@ -101,7 +101,7 @@ namespace Microsoft.eShopWeb.Web.Controllers
|
||||
}
|
||||
|
||||
StatusMessage = "Your profile has been updated";
|
||||
return RedirectToAction(nameof(Index));
|
||||
return RedirectToAction(nameof(MyAccount));
|
||||
}
|
||||
|
||||
[HttpPost]
|
||||
|
||||
Reference in New Issue
Block a user