Example #1
0
 public async Task AddRatingAsync(BookRating rating, ApplicationUser user, BookRecommenderContext db)
 {
     await db.Ratings.AddAsync(new BookRating(user, this, rating.Rating, rating.Review));
 }
Example #2
0
 public void AddRating(BookRating rating, ApplicationUser user, BookRecommenderContext db)
 {
     AddRatingAsync(rating, user, db).Wait();
 }