Example #1
0
        // 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}");
            });
        }
Example #2
0
 public UserController(KitchenAppContext context)
 {
     appContext = context;
 }
Example #3
0
 public AccountController(KitchenAppContext context)
 {
     appContext = context;
 }
Example #4
0
 public void TestInitialized()
 {
     Context = GetContext();
     SetTestEntity();
 }
Example #5
0
 public HomeController(KitchenAppContext context)
 {
     appContext = context;
 }
Example #6
0
 public AdminController(KitchenAppContext appContext, IPushNotificationService pushNotificationService)
 {
     this.appContext          = appContext;
     _pushNotificationService = pushNotificationService;
 }