Example #1
0
        public async Task <IActionResult> Index()
        {
            var viewModel = new HomeViewModel
            {
                CharacterCount = await _characterRepository.GetCount(),
                SkillCount     = await _skillRepository.GetCount(),
                PlayerCount    = await _playerRepository.GetCount(),
                ItemCount      = await _itemRepository.GetCount()
            };

            return(View(viewModel));
        }