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:
Praburaj 2014-04-28 18:02:21 -07:00
parent e324f989e7
commit b7a989256f
2 changed files with 4 additions and 6 deletions

View File

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

View File

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