Exemple #1
0
        public HomeController(ILogger <HomeController> logger, IPCRepositiory pcRepo, ICaseRepository caseRepo, ICPURepository cpuRepo, IGPURepository gpuRepo, IHarddriveRepository harddriveRepo, IMotherboardRepository motherboardRepo, IPSURepository psuRepo, IRAMRepository ramRepo)
        {
            _logger          = logger;
            _pcRepo          = pcRepo;
            _caseRepo        = caseRepo;
            _cpuRepo         = cpuRepo;
            _gpuRepo         = gpuRepo;
            _harddriveRepo   = harddriveRepo;
            _motherboardRepo = motherboardRepo;
            _psuRepo         = psuRepo;
            _ramRepo         = ramRepo;

            _pcs              = new PCViewModel();
            _pcs.PCs          = _pcRepo.getPCs().ToList();
            _pcs.Cases        = _caseRepo.getCases().ToList();
            _pcs.CPUs         = _cpuRepo.getCPUs().ToList();
            _pcs.GPUs         = _gpuRepo.getGPUS().ToList();
            _pcs.Harddrives   = _harddriveRepo.getHarddrives().ToList();
            _pcs.Motherboards = _motherboardRepo.getMotherboards().ToList();
            _pcs.PSUs         = _psuRepo.getPSUs().ToList();
            _pcs.RAMs         = _ramRepo.getRAMs().ToList();
        }
Exemple #2
0
 public RAMController(IRAMLoad LoadService, IRAMRepository RAMService)
 {
     _LoadService = LoadService;
     _RAMService  = RAMService;
 }