public HttpResponseMessage delete(Int32 id = 0, Int32 optionId = 0) { // Create an error code variable Int32 errorCode = 0; // Delete the post errorCode = ProductOption.DeleteOnId(id, optionId); // Check if there is an error if (errorCode != 0) { return(Request.CreateResponse <string>(HttpStatusCode.Conflict, "Foreign key constraint")); } // Return the success response return(Request.CreateResponse <string>(HttpStatusCode.OK, "The delete was successful")); } // End of the delete method