public void ConfigureServices(IServiceCollection services) { ServiceExtensions.ConfigureCors(services); ServiceExtensions.AddScoped(services); services.AddMvc().SetCompatibilityVersion(CompatibilityVersion.Version_2_2); services.AddDbContext <PlanetDatabaseContext>(options => options.UseSqlServer(Configuration["ConnectionStrings:PlanetDatabaseConnection"])); }