// DELETE: api/Customers/5 public IHttpActionResult Delete(int id) { try { context.Delete(id); return(Ok(true)); } catch (Exception ex) { return(BadRequest(ex.Message)); } }