public async Task <IEnumerable <ProductOption> > GetAllProductOptionsByProductIdAsync(Guid productId) { if (await _productRepository.GetByIdAsync(productId) == null) { throw new NotFoundException(Constants.Constants.ProductNotFound, HttpStatusCode.NotFound.ToString()); } return(await _repository.GetAllByProductIdAsync(productId)); }