public IHttpActionResult Delete(int id) { try { urlRepository.Delete(id); } catch (Exception e) { return(InternalServerError(e)); } return(Ok()); }