Пример #1
0
        /// <summary>
        ///
        /// </summary>
        /// <param name="id"></param>
        /// <returns></returns>
        public async Task <ProductOptions> GetProductOptionById(Guid id)
        {
            ProductOption result = await productOptionRepository.GetAsync(id);

            if (result == null)
            {
                return(new ProductOptions());
            }

            return(new ProductOptions
            {
                Items = new List <ProductOptionDto> {
                    GetProductOptionDto(result)
                }
            });
        }