public RecertCycleController(PAML01Context context, ControllerService service, ILogger <RecertCycleController> logger)
        {
            _context = context;
            _service = service;
            _logger  = logger;

            if (!_context.RecertCycleTable.Any())
            {
                _context.RecertCycleTable.Add(
                    new RecertCycleTable
                {
                    RecertCycleTitle  = "Initial cycle",
                    RecertStartedDate = DateTime.Now,
                    RecertEnabled     = false
                }
                    );
                _context.SaveChanges();
            }
        }
 public ControllerService(PAML01Context context, ILogger <ControllerService> logger)
 {
     _context = context;
     _logger  = logger;
 }
Esempio n. 3
0
 public ServiceController(PAML01Context context, ControllerService service, ILogger <ServiceController> logger)
 {
     _context = context;
     _service = service;
     _logger  = logger;
 }