Exemplo n.º 1
0
        public async Task <IActionResult> SetIconAsync([FromRoute] int itemId, [FromBody] UnturnedItem item)
        {
            await unturnedItemsRepository.SetIconAsync(itemId, item.Icon);

            return(Ok());
        }
        public async Task UpdateIconAsync(int itemId, byte[] icon)
        {
            await unturnedItemsRepository.SetIconAsync(itemId, icon);

            memoryCache.Remove(CacheKeys.ItemIconId(itemId));
        }