public async Task <IHttpActionResult> DeleteHop(int id) { var hop = await _hopService.DeleteHopAsync(id); if (hop == null) { return(NotFound()); } return(Ok(hop)); }