private ApplicationDbContext db;
public ApplicationDbContext AppDbContext
{
get
{
return db ?? HttpContext.GetOwinContext().Get<ApplicationDbContext>();
}
set
{
db = value;
}
}
public ApplicationDbContext AppDbContext
{
get
{
return HttpContext.GetOwinContext().Get<ApplicationDbContext>();
}
}