public Task Invoke(HttpContext context, IServiceProvider serviceProvider, MarriageAgencyContext dbContext) { if (!context.Session.Keys.Contains("starting")) { DbInitializer.Initialize(dbContext); context.Session.SetString("starting", "Yes"); } // Call the next delegate/middleware in the pipeline return(_next.Invoke(context)); }
public RelationshipsController(MarriageAgencyContext context) { _context = context; }
public ServicesController(MarriageAgencyContext context) { _context = context; }
public NationalitiesController(MarriageAgencyContext context) { _context = context; }
public EmployeesController(MarriageAgencyContext context) { _context = context; }
public CustomersController(MarriageAgencyContext context) { _context = context; }
public ClientsController(MarriageAgencyContext context) { _context = context; }
public ZodiacSignsController(MarriageAgencyContext context) { _context = context; }
public HomeController(MarriageAgencyContext context) { _context = context; }