// DELETE: api/ConsultaCep/5 public IHttpActionResult Delete(int id) { CEP cep = new CEP(id); try { cep.Delete(); } catch (Exception) { throw; } return(Ok()); }