public static ApplicationUserManager Create(IdentityFactoryOptions <ApplicationUserManager> options, IOwinContext context) { ElectronicContext db = context.Get <ElectronicContext>(); ApplicationUserManager manager = new ApplicationUserManager(new UserStore <ApplicationUser>(db)); return(manager); }