public HttpResponseMessage DeleteProductOption(Guid id)
 {
     try
     {
         var option = _productOptionService.GetByKey(id);
         _productOptionService.Delete(option);
         return(Request.CreateResponse(HttpStatusCode.OK));
     }
     catch (Exception ex)
     {
         return(Request.CreateErrorResponse(HttpStatusCode.InternalServerError, ex));
     }
 }
示例#2
0
 public void DeleteOption(Guid id)
 {
     _productOptionService.Delete(id);
 }