public IHttpActionResult Create(Guid productId, ProductOption option)
        {
            option.ProductId = productId;

            _productOptionRepository.Create(option);
            return(StatusCode(HttpStatusCode.NoContent));
        }
Esempio n. 2
0
 /// <summary>
 /// Creates the product option.
 /// </summary>
 /// <param name="productOption">The product option.</param>
 public void CreateProductOption(ProductOption productOption)
 {
     _productOptionRepository.Create(productOption);
 }
 public void CreateOption(Guid productId, ProductOption option)
 {
     option.ProductId = productId;
     _productOptionRepository.Create(option);
 }