Esempio n. 1
0
        public async Task DeleteById(Guid id)
        {
            var current = await _repository.GetAsync(id).ConfigureAwait(false);

            if (current == null)
            {
                throw new Exception("Item not found");
            }

            await _repository.DeleteAsync(current).ConfigureAwait(false);
        }