コード例 #1
0
        public async Task <IActionResult> Index(BungieMembershipType type, long accountId,
                                                long characterId, uint itemHash, long instanceId)
        {
            var item = await _itemFactory.LoadItem(type, accountId, characterId, itemHash, instanceId);

            var model = new ItemViewModel
            {
                Type             = type,
                AccountId        = accountId,
                CharacterId      = characterId,
                Item             = item,
                SocketCategories = SocketCategoryViewModel.Convert(item.SocketCategories).ToList()
            };

            return(View(model));
        }