// This method gets called by the runtime. Use this method to configure the HTTP request pipeline. public void Configure(IApplicationBuilder app, IHostingEnvironment env, AlexContext context) { if (env.IsDevelopment()) { app.UseBrowserLink(); app.UseDeveloperExceptionPage(); } else { app.UseExceptionHandler("/Home/Error"); } app.UseStaticFiles(); app.UseMvc(routes => { routes.MapRoute( name: "default", template: "{controller=Home}/{action=Index}/{id?}"); }); DbInitializer.Initialize(context); }
public RespostasController(AlexContext context) { _context = context; }
public AnexosController(AlexContext context) { _context = context; }
public PerguntasController(AlexContext context) { _context = context; }
public RedesController(AlexContext context) { _context = context; }
public HomeController(AlexContext context) { _context = context; }
public CidadesController(AlexContext context) { _context = context; }
public TemasController(AlexContext context) { _context = context; }
public EstadosController(AlexContext context) { _context = context; }
public EnderecosController(AlexContext context) { _context = context; }
public AdministradoresController(AlexContext context) { _context = context; }