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)); } }
public void DeleteOption(Guid id) { _productOptionService.Delete(id); }