public IHttpActionResult DeleteGraph(int id) { try { _graphService.DeleteGraph(id); return(Ok()); } catch (KeyNotFoundException) { return(NotFound()); } }
public void DeleteGraph(int id) { graphService.DeleteGraph(id); }