Exemplo n.º 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));
        }
Exemplo n.º 2
0
 public ServicesController(NotarialOfficeContext context)
 {
     _context = context;
 }
Exemplo n.º 3
0
 public EmployeesController(NotarialOfficeContext context)
 {
     _context = context;
 }
Exemplo n.º 4
0
 public ContractsController(NotarialOfficeContext context)
 {
     _context = context;
 }
Exemplo n.º 5
0
 public PositionsController(NotarialOfficeContext context)
 {
     _context = context;
 }