Exemple #1
0
        public IActionResult List()
        {
            ChargerListViewModel chargersListViewModel = new ChargerListViewModel();

            chargersListViewModel.Chargers = _chargerRepository.List();
            return(View(chargersListViewModel));
        }
Exemple #2
0
        // GET: Chargers
        public async Task <IActionResult> Index()
        {
            ChargerListViewModel chargersListViewModel = new ChargerListViewModel();

            chargersListViewModel.Chargers = _chargerRepository.List();
            return(View(chargersListViewModel));
        }