// This method gets called by the runtime. Use this method to configure the HTTP request pipeline. public void Configure(IApplicationBuilder app, IHostingEnvironment env, MicroBeeDbContext context) { if (env.IsDevelopment()) { app.UseDeveloperExceptionPage(); } else { app.UseExceptionHandler("/error"); //TBD //app.UseHsts(); } app.UseAuthentication(); app.UseCors(options => options.AllowAnyOrigin().AllowAnyMethod().AllowAnyHeader().AllowCredentials()); //TBD //app.UseHttpsRedirection(); app.UseMvc(); }
public MicroItemRepository(MicroBeeDbContext context) { _context = context; }
public CategoryRepository(MicroBeeDbContext context) { _context = context; }