public static ApplicationIdentityContext Create() { reposiotry = new MarketRepository(); Database = reposiotry.GetDatabase(); var users = Database.GetCollection <ApplicationUser>("users"); var roles = Database.GetCollection <IdentityRole>("roles"); return(new ApplicationIdentityContext(users, roles)); }