Fix profile update routing issue (#564)

This commit is contained in:
Abu Zafor Khairuzzaman
2021-10-25 03:51:38 +06:00
committed by GitHub
parent 97320e16ca
commit c02efcd4be

View File

@@ -67,7 +67,7 @@ namespace Microsoft.eShopWeb.Web.Controllers
[HttpPost] [HttpPost]
[ValidateAntiForgeryToken] [ValidateAntiForgeryToken]
public async Task<IActionResult> Index(IndexViewModel model) public async Task<IActionResult> MyAccount(IndexViewModel model)
{ {
if (!ModelState.IsValid) if (!ModelState.IsValid)
{ {
@@ -101,7 +101,7 @@ namespace Microsoft.eShopWeb.Web.Controllers
} }
StatusMessage = "Your profile has been updated"; StatusMessage = "Your profile has been updated";
return RedirectToAction(nameof(Index)); return RedirectToAction(nameof(MyAccount));
} }
[HttpPost] [HttpPost]