Esempio n. 1
0
        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));
        }
Esempio n. 2
0
 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;
 }
Esempio n. 5
0
 public OrdersController(RepairServiceCenterContext context)
 {
     _context = context;
 }
Esempio n. 6
0
 public ServicedStoresController(RepairServiceCenterContext context)
 {
     _context = context;
 }
 public PostsController(RepairServiceCenterContext context)
 {
     _context = context;
 }
 public TypeOfFaultsController(RepairServiceCenterContext context)
 {
     _context = context;
 }
 public EmployeesController(RepairServiceCenterContext context)
 {
     _context = context;
 }