Exemple #1
0
        // This method gets called by the runtime. Use this method to configure the HTTP request pipeline.
        public void Configure(IApplicationBuilder app, IWebHostEnvironment env, ExcaliburDbContext excaliburDbContext)
        {
            if (env.IsDevelopment())
            {
                app.UseDeveloperExceptionPage();
            }

            app.UseHttpsRedirection();

            app.UseRouting();

            app.UseAuthorization();

            excaliburDbContext.Database.EnsureCreated();

            app.UseSwagger();
            app.UseSwaggerUI(c => c.SwaggerEndpoint("/swagger/v1/swagger.json", "API for Combined Orders"));

            app.UseEndpoints(endpoints =>
            {
                endpoints.MapControllers();
            });
        }
Exemple #2
0
 public OrderDatesController(ExcaliburDbContext context)
 {
     _context = context;
 }
Exemple #3
0
 public OrderCombinedController(ExcaliburDbContext dbContext)
 {
     _dbContext = dbContext;
 }