Exemple #1
0
        /// <inheritdoc />
        public async Task <bool?> DeleteAsync(Guid valueId)
        {
            if (valueId == Guid.Empty)
            {
                return(null);
            }

            var existingValue = await _valueRepository.GetByIdAsync(valueId);

            if (existingValue == null)
            {
                return(null);
            }

            await _valueRepository.RemoveAsync(existingValue);

            return(true);
        }