public static void Initialize(IServiceProvider serviceProvider, string imagesPath) { context = (PhotoGalleryContext)serviceProvider.GetService(typeof(PhotoGalleryContext)); InitializePhotoAlbums(imagesPath); InitializeUserRoles(); }
public static void Initialize(IServiceProvider serviceProvider, string imagesPath) { context = (PhotoGalleryContext)serviceProvider.GetService(typeof(PhotoGalleryContext)); InitializePhotoAlbums(imagesPath); InitializeUserRoles(); }