public void UpdateRating(Rating rating)
        {
            conferenceManager.UpdateRating(rating);

            GlobalHost.ConnectionManager.GetHubContext<RatingsHub>().Clients.All.ratingUpdated(
                new RatingUpdate() { SpeakerId = rating.SpeakerId, SessionId = rating.SessionId });
        }
        public Rating AddRating(Rating rating)
        {
            var updatedRating = conferenceManager.AddRating(rating);

            GlobalHost.ConnectionManager.GetHubContext<RatingsHub>().Clients.All.ratingUpdated(
                new RatingUpdate() { SpeakerId = rating.SpeakerId, SessionId = rating.SessionId });

            return updatedRating;
        }