Uncommenting code to include ActionName attribute.

This commit is contained in:
Praburaj 2014-04-10 14:23:02 -07:00
parent 1e137c7af9
commit bb241c1a79
1 changed files with 1 additions and 4 deletions

View File

@ -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);