Exemplo n.º 1
0
 public void AddRaiting(UserRating userRating)
 {
     using (var context=new DataBaseContext())
     {
         userRating.CreatedTime = DateTime.UtcNow;
         context.UserRatings.Add(userRating);
         context.SaveChanges();
     }
 }
Exemplo n.º 2
0
 public void AddRaiting(UserRating userRating)
 {
     this.ratingRepository.AddRaiting(userRating);
 }