public void AddNewRoom() { var r = _mapper.Map <Room>(_roomService.AddNewRoom()); var t = _chartHubContext.Clients.All.SendAsync("NewRoomId", r.Id); t.Dispose(); }