// DELETE: api/Race/5 public IHttpActionResult Delete(int id) { try { raceService.Delete(id); return(Ok()); } catch (Exception ex) { return(BadRequest()); } }