public Task Invoke(HttpContext context, IServiceProvider serviceProvider, Lab4_CarSharingContext db) { if (!(context.Session.Keys.Contains("starting"))) { DbInitializer.Initialize(db); context.Session.SetString("starting", "Yes"); } return(_next.Invoke(context)); }
public CarsController(Lab4_CarSharingContext context) { db = context; }
public EmployeesController(Lab4_CarSharingContext context) { db = context; }