예제 #1
0
        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));
        }
예제 #2
0
 public ServicesController(NotarialOfficeContext context)
 {
     _context = context;
 }
예제 #3
0
 public EmployeesController(NotarialOfficeContext context)
 {
     _context = context;
 }
예제 #4
0
 public ContractsController(NotarialOfficeContext context)
 {
     _context = context;
 }
예제 #5
0
 public PositionsController(NotarialOfficeContext context)
 {
     _context = context;
 }