Few changes with this checkin:
1. Enabling a work around to add an album to the store (Due to bug# https://github.com/aspnet/WebFx/issues/339) currently its not possible to create / edit an album in the store. 2. Removing a not necessary route from the webFx routes - A previous CR feedback.
This commit is contained in:
parent
e324f989e7
commit
b7a989256f
|
|
@ -55,7 +55,8 @@ namespace MusicStore.Controllers
|
|||
|
||||
//
|
||||
// GET: /StoreManager/Create
|
||||
|
||||
//Bug: https://github.com/aspnet/WebFx/issues/339
|
||||
[HttpGet]
|
||||
public IActionResult Create()
|
||||
{
|
||||
ViewBag.GenreId = new SelectList(db.Genres, "GenreId", "Name");
|
||||
|
|
@ -81,7 +82,8 @@ namespace MusicStore.Controllers
|
|||
|
||||
//
|
||||
// GET: /StoreManager/Edit/5
|
||||
|
||||
//Bug: https://github.com/aspnet/WebFx/issues/339
|
||||
[HttpGet]
|
||||
public IActionResult Edit(int id = 0)
|
||||
{
|
||||
Album album = db.Albums.Single(a => a.AlbumId == id);
|
||||
|
|
|
|||
|
|
@ -83,10 +83,6 @@ public class Startup
|
|||
routes.MapRoute(
|
||||
"{controller}/{action}",
|
||||
new { controller = "Home", action = "Index" });
|
||||
|
||||
routes.MapRoute(
|
||||
"{controller}",
|
||||
new { controller = "Home" });
|
||||
});
|
||||
|
||||
SampleData.InitializeMusicStoreDatabaseAsync(app.ApplicationServices).Wait();
|
||||
|
|
|
|||
Loading…
Reference in New Issue