// This method gets called by the runtime. Use this method to configure the HTTP request pipeline. public void Configure(IApplicationBuilder app, ILoggerFactory loggerFactory, FunnyHistoryContext context) { loggerFactory.AddConsole(Configuration.GetSection("Logging")); loggerFactory.AddDebug(); app.UseCors("SiteCorsPolicy"); app.UseMvc(); DbInit.Initialize(context); }
public HistoryRepository(FunnyHistoryContext context) { _context = context; }