From bb241c1a79123ad71b9fb1ddc416471558b555e2 Mon Sep 17 00:00:00 2001 From: Praburaj Date: Thu, 10 Apr 2014 14:23:02 -0700 Subject: [PATCH] Uncommenting code to include ActionName attribute. --- src/MusicStore/Controllers/StoreManagerController.cs | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/src/MusicStore/Controllers/StoreManagerController.cs b/src/MusicStore/Controllers/StoreManagerController.cs index 126b90109c..6d9dd5f529 100644 --- a/src/MusicStore/Controllers/StoreManagerController.cs +++ b/src/MusicStore/Controllers/StoreManagerController.cs @@ -130,10 +130,7 @@ namespace MusicStore.Controllers // // POST: /StoreManager/Delete/5 - //Bug: ActionName out of scope for alpha - So fixing the name of method in code - //[HttpPost, ActionName("Delete")] - [HttpPost] - //TODO: How to have an action with same name 'Delete'?? + [HttpPost, ActionName("Delete")] public IActionResult DeleteConfirmed(int id) { Album album = db.Albums.Single(a => a.AlbumId == id);