public async Task <IHttpActionResult> Delete(string id) { await _repo.DeleteDocumentAsync(id); // Remove Trail from All Clients // _context = GlobalHost.ConnectionManager.GetHubContext<TrailHub>(); _context.Clients.All.deleteTrail(id); return(Ok()); }