Adding a temporary work around for a bug in ValidationSummary html helper that surfaces during register page.
Cleaning up a Dispose method in one of the controllers - all others have been cleaned up before.
This commit is contained in:
parent
5ba60857a7
commit
1cc6445c49
|
|
@ -101,7 +101,8 @@ namespace MusicStore.Controllers
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
//https://github.com/aspnet/Identity/issues/37
|
return Json(result.Errors);
|
||||||
|
//https://github.com/aspnet/WebFx/issues/289
|
||||||
AddErrors(result);
|
AddErrors(result);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -142,12 +142,5 @@ namespace MusicStore.Controllers
|
||||||
db.SaveChanges();
|
db.SaveChanges();
|
||||||
return RedirectToAction("Index");
|
return RedirectToAction("Index");
|
||||||
}
|
}
|
||||||
|
|
||||||
//Bug: Can't dispose db.
|
|
||||||
//protected override void Dispose(bool disposing)
|
|
||||||
//{
|
|
||||||
// db.Dispose();
|
|
||||||
// base.Dispose(disposing);
|
|
||||||
//}
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
Loading…
Reference in New Issue