public DepartmentsController(PlantManagerContext context, ILogger <DepartmentsController> logger) { _context = context; _logger = logger; if (_context.Departments.Any()) { return; } PlantSeed.InitData(context); }
public MachinesController(PlantManagerContext context, ILogger <MachinesController> logger) { _context = context; _logger = logger; if (_context.Machines.Any()) { return; } PlantSeed.InitData(context); }
public CostCentersController(PlantManagerContext context, ILogger <CostCentersController> logger) { _context = context; _logger = logger; if (_context.CostCenters.Any()) { return; } PlantSeed.InitData(context); }