예제 #1
0
 /// <summary>Adds the specified rating to the specified entity.</summary>
 /// <param name="rating">The rating to add (1-100), or 0 to remove the rating.</param>
 /// <param name="entity">The entity to rate.</param>
 /// <returns>This submission request.</returns>
 public RatingSubmission Add(byte rating, IRatableEntity entity)
 {
     if (entity == null)
     {
         throw new ArgumentNullException(nameof(entity));
     }
     return(this.Add(rating, entity.EntityType, entity.MbId));
 }
예제 #2
0
 /// <summary>Adds the specified rating to the specified entity.</summary>
 /// <param name="rating">The rating to add (1-100), or 0 to remove the rating.</param>
 /// <param name="entity">The entity to rate.</param>
 /// <returns>This submission request.</returns>
 public RatingSubmission Add(byte rating, IRatableEntity entity)
 {
     return(this.Add(rating, entity.EntityType, entity.Id));
 }