예제 #1
0
        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));
        }
예제 #2
0
 public RelationshipsController(MarriageAgencyContext context)
 {
     _context = context;
 }
예제 #3
0
 public ServicesController(MarriageAgencyContext context)
 {
     _context = context;
 }
예제 #4
0
 public NationalitiesController(MarriageAgencyContext context)
 {
     _context = context;
 }
 public EmployeesController(MarriageAgencyContext context)
 {
     _context = context;
 }
예제 #6
0
 public CustomersController(MarriageAgencyContext context)
 {
     _context = context;
 }
예제 #7
0
 public ClientsController(MarriageAgencyContext context)
 {
     _context = context;
 }
예제 #8
0
 public ZodiacSignsController(MarriageAgencyContext context)
 {
     _context = context;
 }
예제 #9
0
 public HomeController(MarriageAgencyContext context)
 {
     _context = context;
 }