/// <summary>
        /// Gets the rating statistics for the page on which the RatingBlock resides
        /// </summary>
        /// <param name="target">The current page on which the RatingBlock resides</param>
        /// <param name="blockModel">a reference to the RatingBlockViewModel to
        /// populate with rating statistics for the current page and errors, if any</param>
        private void GetRatingStatistics(string target, RatingBlockViewModel blockModel)
        {
            blockModel.NoStatisticsFoundMessage = string.Empty;

            try
            {
                var result = _ratingRepository.GetRatingStatistics(target);
                if (result != null)
                {
                    blockModel.Average    = result.Average;
                    blockModel.TotalCount = result.TotalCount;
                }
                else
                {
                    var loggedInMessage          = "This page has not been rated. Be the first!";
                    var loggedOutMessage         = "This page has not been rated. Log in and be the first!";
                    var loggedInNotMemberMessage = "This page has not been rated. Join group and be the first!";
                    blockModel.NoStatisticsFoundMessage = User.Identity.IsAuthenticated
                                                            ? (blockModel.IsMemberOfGroup ? loggedInMessage : loggedInNotMemberMessage)
                                                            : loggedOutMessage;
                }
            }
            catch (SocialRepositoryException ex)
            {
                blockModel.Messages.Add(new MessageViewModel(ex.Message, ErrorMessage));
            }
        }