public IActionResult Index()
        {
            AllViewModel model = new AllViewModel();

            model.hardwares = _hardwareRepository.AllHardware();
            return(View(model));
        }
        public IActionResult All()
        {
            AllViewModel model = new AllViewModel();

            model.books     = _bookRepository.AllBook();
            model.hardwares = _hardwareRepository.AllHardware();
            model.softwares = _softwareRepository.AllSoftware();
            return(View(model));
        }
예제 #3
0
 public IEnumerable <Hardware> ReadHardwares()
 {
     return(_hardwareRepository.AllHardware());
 }