public Task Invoke(HttpContext context, IServiceProvider serviceProvider, NotarialOfficeContext 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 ServicesController(NotarialOfficeContext context) { _context = context; }
public EmployeesController(NotarialOfficeContext context) { _context = context; }
public ContractsController(NotarialOfficeContext context) { _context = context; }
public PositionsController(NotarialOfficeContext context) { _context = context; }