public Task Invoke(HttpContext context, IServiceProvider serviceProvider, RepairServiceCenterContext 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 RepeiredModelService(RepairServiceCenterContext db, IMemoryCache memoryCache) { this.db = db; cache = memoryCache; }
public SparePartsController(RepairServiceCenterContext context) { _context = context; }
public RepairedModelsController(RepairServiceCenterContext context, ICachingModel <RepairedModel> cachingModel) { _context = context; _cachingModel = cachingModel; }
public OrdersController(RepairServiceCenterContext context) { _context = context; }
public ServicedStoresController(RepairServiceCenterContext context) { _context = context; }
public PostsController(RepairServiceCenterContext context) { _context = context; }
public TypeOfFaultsController(RepairServiceCenterContext context) { _context = context; }
public EmployeesController(RepairServiceCenterContext context) { _context = context; }