Moved to appropriate place

This commit is contained in:
Veljko Tosic
2026-02-14 18:47:21 +01:00
parent 62da4b7392
commit c5b08de0a2

View File

@@ -0,0 +1,15 @@
using Microsoft.Extensions.DependencyInjection;
namespace AipsCore.Infrastructure.Persistence.Db;
public static class StartupExtensions
{
public static async Task InitializeInfrastructureAsync(this IServiceProvider services)
{
using var scope = services.CreateScope();
var serviceProvider = scope.ServiceProvider;
await DbInitializer.SeedRolesAsync(serviceProvider);
}
}