Fixing some more build breaks on net 4.5 projects.
This commit is contained in:
parent
c4c618fafd
commit
fa7956d814
|
|
@ -56,7 +56,7 @@ namespace MvcMusicStore.Controllers
|
|||
{
|
||||
if (ModelState.IsValid)
|
||||
{
|
||||
_storeContext.Update(album);
|
||||
_storeContext.Entry(album).State = EntityState.Modified;
|
||||
|
||||
await _storeContext.SaveChangesAsync();
|
||||
|
||||
|
|
|
|||
|
|
@ -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");
|
||||
|
|
|
|||
Loading…
Reference in New Issue