// This method gets called by the runtime. Use this method to configure the HTTP request pipeline. public void Configure(IApplicationBuilder app, IHostingEnvironment env, ILoggerFactory loggerFactory, OfflineFirstReferenceWebContext contex) { loggerFactory.AddConsole(Configuration.GetSection("Logging")); loggerFactory.AddDebug(); app.UseDeveloperExceptionPage(); app.UseMvc(); DbInitializer.Initialize(contex); }
public WidgetsController(OfflineFirstReferenceWebContext context) { _context = context; }