// This method gets called by the runtime. Use this method to configure the HTTP request pipeline. public void Configure(IApplicationBuilder app, IHostingEnvironment env, KitchenAppContext context) { if (env.IsDevelopment()) { app.UseDeveloperExceptionPage(); } else { app.UseExceptionHandler("/Home/Error"); } app.UseStaticFiles(); app.UseDefaultFiles(); app.UseAuthentication(); app.UsePushNotification(); app.UseMvc(routes => { routes.MapRoute( name: "default", template: "{controller=Home}/{action=Index}"); }); }
public UserController(KitchenAppContext context) { appContext = context; }
public AccountController(KitchenAppContext context) { appContext = context; }
public void TestInitialized() { Context = GetContext(); SetTestEntity(); }
public HomeController(KitchenAppContext context) { appContext = context; }
public AdminController(KitchenAppContext appContext, IPushNotificationService pushNotificationService) { this.appContext = appContext; _pushNotificationService = pushNotificationService; }