public IActionResult Index() { var items = _itemRepository.GetAllItems().OrderBy(i => i.ContainerId).ThenBy(i => i.BagSlot); var containers = _containerRepository.GetAllContainers().OrderBy(c => c.ContainerId); var wallet = _walletRepository.GetWallet(); var bankViewModel = new BankViewModel() { Title = "OG Guild Bank", Wallet = wallet }; bankViewModel.GenerateStockedContainers(items.ToList(), containers.ToList()); return(View(bankViewModel)); }