示例#1
0
        public async Task <IEnumerable <ProductOption> > GetAllAsync()
        {
            var productOptions = await _productOptionRepository.GetAllAsync();

            if (!productOptions.Any())
            {
                throw new EntityNotFoundException("No product options available in the store");
            }
            return(productOptions);
        }