public void Remove(int id) { try { var pdcbs = new ProductBusiness(); var product = pdcbs.GetbyID(id); pdcbs.Borrar(product); } catch (Exception ex) { var httpError = new HttpResponseMessage() { StatusCode = (HttpStatusCode)422, ReasonPhrase = ex.Message }; throw new HttpResponseException(httpError); } }