public static void ConfigureServices(IServiceCollection services, string connString) { DbSeed.ConfigureContext(services, connString); services.AddScoped(typeof(ICRUD <Cinema>), typeof(CinemaService)); services.AddScoped(typeof(ICRUD <Hall>), typeof(HallService)); services.AddScoped(typeof(ICRUD <Movie>), typeof(MovieService)); }