public void Remove(int id) { try { var ob = new OrderBusiness(); ob.Delete(id); } catch (Exception ex) { var httpError = new HttpResponseMessage() { StatusCode = (HttpStatusCode)422, ReasonPhrase = ex.Message + "+" + ex.InnerException, Content = new StringContent(ex.Message), }; throw new HttpResponseException(httpError); } }
public void Delete(int id) { business.Delete(id); }