public void Delete()
        {
            var countShouldBe   = _productOptions.Count - 1;
            var productExisting = _productOptions.First();

            _productOptionLibrary.Delete(productExisting.Id);
            var countIs = _productOptions.Count;

            Assert.AreEqual(countIs, countShouldBe);
        }
 public IHttpActionResult DeleteOption(Guid id)
 {
     try
     {
         _productOptionLibrary.Delete(id);
         return(Ok());
     }
     catch (Exception ex)
     {
         return(BadRequest(ex.Message + ex.InnerException?.Message + ex.InnerException?.StackTrace));
     }
 }