private static void InitializeDatabase(AplicationContext context) { context.Database.Migrate(); using (var seed = new ApplicationDbInitializer(context)) { seed.SeedDataAsync().GetAwaiter().GetResult(); } }