Revert "Unify ChapterRating with Rating"
This wasn't working out, there is still some duplicate code. But not that much, and from the API, there is no different. Hooray!
This commit is contained in:
parent
052b3f9fe4
commit
184cf46533
21 changed files with 389 additions and 87 deletions
|
|
@ -20,12 +20,6 @@ public class RatingBuilder : IEntityBuilder<AppUserRating>
|
|||
return this;
|
||||
}
|
||||
|
||||
public RatingBuilder WithChapterId(int? chapterId)
|
||||
{
|
||||
_rating.ChapterId = chapterId;
|
||||
return this;
|
||||
}
|
||||
|
||||
public RatingBuilder WithRating(int rating)
|
||||
{
|
||||
_rating.Rating = Math.Clamp(rating, 0, 5);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue