public RatingBlockViewModel(RatingBlock block, PageReference currentLink)
 {
     Heading      = block.Heading;
     ShowHeading  = block.ShowHeading;
     SendActivity = block.SendActivity;
     CurrentLink  = currentLink;
     LoadRatingSettings(block);
     CurrentBlock = block;
 }
 private void LoadRatingSettings(RatingBlock block)
 {
     RatingSettings = new List <int>();
     RatingSettings.AddRange(block.RatingSettings.Select(r => r.Value).ToList());
     RatingSettings.Sort();
 }