public static AppRoleManager Create(IdentityFactoryOptions <AppRoleManager> options, IOwinContext context) { ShowRoomDataContext dbContext = context.Get <ShowRoomDataContext>(); RoleStore <AppRole> roleStore = new RoleStore <AppRole>(dbContext); var manager = new AppRoleManager(roleStore); return(manager); }
// this method is called by Owin therefore this is the best place to configure your User Manager public static AppUserManager Create( IdentityFactoryOptions <AppUserManager> options, IOwinContext context) { ShowRoomDataContext dbContext = context.Get <ShowRoomDataContext>(); UserStore <AppUser> userStore = new UserStore <AppUser>(dbContext); var manager = new AppUserManager(userStore); return(manager); }
public ShowRoomController() { _db = new ShowRoomDataContext(); }
public AccountController() { _db = new ShowRoomDataContext(); }