Adding a [HttpGet] attribute to enable the Delete album from the store functionality.

This action corresponds to a confirmation page to delete the item.
This commit is contained in:
Praburaj 2014-04-10 17:22:55 -07:00
parent bb241c1a79
commit aaae435cc3
1 changed files with 1 additions and 0 deletions

View File

@ -117,6 +117,7 @@ namespace MusicStore.Controllers
//
// GET: /StoreManager/Delete/5
[HttpGet]
public IActionResult Delete(int id = 0)
{
Album album = db.Albums.Single(a => a.AlbumId == id);