Пример #1
0
        public async Task AddItemToDispenserAsync(Item item, CancellationToken cancellationToken = default)
        {
            if (item == null)
            {
                throw new ArgumentNullException(nameof(item));
            }

            await itemRepository.AddAsync(ItemMapping.CreateDtoItem(item), cancellationToken);
        }