// This method gets called by the runtime. Use this method to configure the HTTP request pipeline. public void Configure(IApplicationBuilder app, IHostingEnvironment env, JimTestContext context, SendGrid.SendGridClient sendGridClient) { if (env.IsDevelopment()) { app.UseBrowserLink(); app.UseDeveloperExceptionPage(); } else { app.UseExceptionHandler("/Home/Error"); } app.UseStaticFiles(); app.UseAuthentication(); app.UseMvc(routes => { routes.MapRoute( name: "default", template: "{controller=Home}/{action=Index}/{id?}"); }); //put our intitialization logic DbInitializer.Initialize(context); }
public ShippingController(JimTestContext context, Braintree.BraintreeGateway braintreeGateway, SignInManager <ApplicationUser> signInManager, SmartyStreets.USStreetApi.Client usStreetClient) { _context = context; _braintreeGateway = braintreeGateway; _signInManager = signInManager; _usStreetClient = usStreetClient; }
public ProductCategoryController(JimTestContext context) { _context = context; }
public ProductsController(JimTestContext context) { _context = context; }