Esempio n. 1
0
 public void PutRating(Models.Front.Rating rating)
 {
     using (var context = new PostgressContext())
     {
         context.Ratings.Add(new Ratings
         {
             RatingValue = rating.RatingValue,
             Date        = DateTime.Now,
             UserId      = rating.UserId,
             PostId      = rating.PostId
         }
                             );
         context.SaveChanges();
     }
 }
Esempio n. 2
0
 public void PutRating(Models.Front.Rating rating)
 {
     _ratingRep.PutRating(rating);
 }