コード例 #1
0
        public IActionResult Index()
        {
            AllViewModel model = new AllViewModel();

            model.softwares = _softwareRepository.AllSoftware();
            return(View(model));
        }
コード例 #2
0
        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 <Software> ReadHardwares()
 {
     return(_softwareRepository.AllSoftware());
 }