// This method gets called by the runtime. Use this method to configure the HTTP request pipeline. // This is where middleware is called and configured. public void Configure(IApplicationBuilder app, IHostingEnvironment env, LaymanFinanceContext context) { if (env.IsDevelopment()) { app.UseBrowserLink(); } else { app.UseExceptionHandler("/Home/Error"); } app.UseDeveloperExceptionPage(); app.UseStaticFiles(); app.UseAuthentication(); app.UseMvc(routes => { routes.MapRoute( name: "default", template: "{controller=Home}/{action=Index}/{id?}"); }); DbInitializer.Initialize(context); }
public ApplicationUsersController(LaymanFinanceContext context) { _context = context; }
public AccountController(SignInManager <ApplicationUser> signInManager, SendGridClient sendGridClient, LaymanFinanceContext context) { _signInManager = signInManager; _sendGridClient = sendGridClient; _context = context; }
public DashboardController(LaymanFinanceContext context) { _context = context; }
public TransactionsController(LaymanFinanceContext context) { _context = context; }
public SmsController(LaymanFinanceContext context) { _context = context; }