public void ConfigureServices(IServiceCollection services) { services.AddCors(); services.AddTransient <IImagePickDbContext, ImagePickDbContext>(); services.AddDbContext <ImagePickDbContext>(options => options.UseSqlite(Configuration.GetConnectionString("DefaultConnection"))); IdentityConfig.CreateIdentityIfNotCreated(services); AuthenticationConfig.ConfigureAuthenticationSettings(services, Configuration); IoCRegister.AddRegistration(services); SwaggerConfig.AddRegistration(services); services.AddControllers(options => options.RespectBrowserAcceptHeader = true) .AddNewtonsoftJson(); }