using Zurnal.Data.Repository; using Zurnal.Date.Repository.SQLRepos; using Zurnal.Domain.UseCase; using Zurnal.Presence; using Zurnal.UI; class Programka { static void Main(string[] args) { IServiceCollection services = new ServiceCollection(); services .AddDbContext() .AddSingleton() .AddSingleton() .AddSingleton() .AddSingleton() .AddSingleton() .AddSingleton() .AddSingleton(); var serviceProvider = services.BuildServiceProvider(); MainMenuUI mainMenuUI = serviceProvider.GetService(); mainMenuUI.DisplayMenu(); } }