using Indotalent.Data.Entities; using Microsoft.EntityFrameworkCore; namespace Indotalent.Infrastructure.Database.Demo; public static class WarehouseSeeder { public static async Task GenerateDataAsync(AppDbContext context) { if (await context.Warehouse.Where(x => x.SystemWarehouse == false).AnyAsync()) return; var warehouses = new List { new Warehouse { Name = "Grand Wellness Corporate Center - Manhattan" }, new Warehouse { Name = "Serenity Sanctuary Spa - Beverly Hills" }, new Warehouse { Name = "Tranquil Bliss Spa & Retreat - Maui" }, new Warehouse { Name = "Oceanic Refresh Spa - Miami" }, new Warehouse { Name = "Holistic Harmony Wellness - Aspen" }, new Warehouse { Name = "Mindful Living Center - Seattle" }, new Warehouse { Name = "Zenith Soul & Spirit - Sedona" }, new Warehouse { Name = "Iron & Oxygen Fitness Club - Brooklyn" }, new Warehouse { Name = "Peak Performance Gym - Austin" }, new Warehouse { Name = "Urban Pulse Fitness Studio - Chicago" } }; foreach (var warehouse in warehouses) { await context.Warehouse.AddAsync(warehouse); } await context.SaveChangesAsync(); } }