using Microsoft.Extensions.DependencyInjection; using data; using data.Repository; using data.RemoteData.RemoteDataBase; using Presence.Desktop.ViewModels; using domain.UseCase; namespace Presence.Desktop.DI { public static class ServiceCollectionExtensions { public static void AddCommonService(this IServiceCollection collection) { collection .AddSingleton() .AddDbContext() .AddTransient() .AddTransient(); } } }