public void Configure(IApplicationBuilder app, IHostingEnvironment env, SwmsContext swmsContext) { swmsContext.Database.Migrate(); if (env.IsDevelopment()) { app.UseDeveloperExceptionPage(); } else { app.UseHsts(); } app.UseHttpsRedirection(); app.UseSwmsCors(); app.UseAuthentication(); app.UseMvc(); }
public ClientsController(SwmsContext swmsContext) { _swmsContext = swmsContext; }