public async Task <IHttpActionResult> Post([FromBody] Trail entity) { var result = await _repo.CreateDocumentAsync(entity); var id = result.Resource.Id; var model = _repo.GetById(id); // Send Trail Posted to All Clients //_context = GlobalHost.ConnectionManager.GetHubContext<TrailHub>(); _context.Clients.All.postNewTrail(entity); return(Ok(model)); }