// This method gets called by the runtime. Use this method to configure the HTTP request pipeline. public void Configure(IApplicationBuilder app, IWebHostEnvironment env, RestoRentivaDbContext dbContext) { if (env.IsDevelopment()) { app.UseDeveloperExceptionPage(); app.UseSwagger(); app.UseSwaggerUI(c => c.SwaggerEndpoint("/swagger/v1/swagger.json", "restoRentiva v1")); } SeedDatabase.CreateAndSeed(dbContext); app.UseHttpsRedirection(); app.UseRouting(); app.UseEndpoints(endpoints => { endpoints.MapControllers(); }); }
public BaseController(RestoRentivaDbContext db) { this.db = db; }
public BookingController(RestoRentivaDbContext db, IBookingRepository bookingRepository) : base(db) { this.bookingRepository = bookingRepository; }
public TableRepository(RestoRentivaDbContext db) { this.db = db; }
public TableController(RestoRentivaDbContext db, ITableRepository tableRepository) : base(db) { this.tableRepository = tableRepository; }
public BookingRepository(RestoRentivaDbContext db) { this.db = db; }