Пример #1
0
 public ShowController(
     ICPURepository cPU,
     IGPURepository gPU,
     IGameRepository game,
     IShowService service,
     IMapper mapper)
 {
     Service        = service;
     Mapper         = mapper;
     CPURepository  = cPU;
     GPURepository  = gPU;
     gameRepository = game;
 }
Пример #2
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();
        }
Пример #3
0
 public CPUController(ILoggerManager Logger, ICPURepository ICPURepository, Context Context)
 {
     _Logger         = Logger;
     _ICPURepository = ICPURepository;
     _Context        = Context;
 }