Uncommenting code to include ActionName attribute.
This commit is contained in:
parent
1e137c7af9
commit
bb241c1a79
|
|
@ -130,10 +130,7 @@ namespace MusicStore.Controllers
|
||||||
|
|
||||||
//
|
//
|
||||||
// POST: /StoreManager/Delete/5
|
// POST: /StoreManager/Delete/5
|
||||||
//Bug: ActionName out of scope for alpha - So fixing the name of method in code
|
[HttpPost, ActionName("Delete")]
|
||||||
//[HttpPost, ActionName("Delete")]
|
|
||||||
[HttpPost]
|
|
||||||
//TODO: How to have an action with same name 'Delete'??
|
|
||||||
public IActionResult DeleteConfirmed(int id)
|
public IActionResult DeleteConfirmed(int id)
|
||||||
{
|
{
|
||||||
Album album = db.Albums.Single(a => a.AlbumId == id);
|
Album album = db.Albums.Single(a => a.AlbumId == id);
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue