Browse Source

Fix profile update routing issue (#564)

main
Abu Zafor Khairuzzaman 4 years ago
committed by GitHub
parent
commit
c02efcd4be
No known key found for this signature in database GPG Key ID: 4AEE18F83AFDEB23
  1. 4
      src/Web/Controllers/ManageController.cs

4
src/Web/Controllers/ManageController.cs

@ -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]

Loading…
Cancel
Save