示例#1
0
        public async Task <IHttpActionResult> GetOptions(Guid productId)
        {
            var response = await _productOptionService.GetAllByProductId(productId);

            if (!response.IsSuccess)
            {
                return(BadRequest(response.FailureReason));
            }

            return(Ok(response.Result));
        }