Esempio n. 1
0
        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);
        }