// This method gets called by the runtime. Use this method to configure the HTTP request pipeline. public void Configure(IApplicationBuilder app, IHostingEnvironment env, LitUpContext context) { if (env.IsDevelopment()) { app.UseDeveloperExceptionPage(); } else { app.UseHsts(); } DbInitializer.Initialize(context); app.UseAuthentication(); app.UseHttpsRedirection(); app.UseMvc(); }
public UserService(LitUpContext litUpContext) { this.litUpContext = litUpContext; }
public WeatherService(LitUpContext context) { this.context = context; }