Fixing some more build breaks on net 4.5 projects.

This commit is contained in:
Praburaj 2015-02-25 11:10:46 -08:00
parent c4c618fafd
commit fa7956d814
2 changed files with 3 additions and 3 deletions

View File

@ -56,7 +56,7 @@ namespace MvcMusicStore.Controllers
{
if (ModelState.IsValid)
{
_storeContext.Update(album);
_storeContext.Entry(album).State = EntityState.Modified;
await _storeContext.SaveChangesAsync();

View File

@ -73,8 +73,8 @@ namespace MvcMusicStore.Controllers
{
if (ModelState.IsValid)
{
_storeContext.Update(album);
_storeContext.Entry(album).State = EntityState.Modified;
await _storeContext.SaveChangesAsync();
return RedirectToAction("Index");