Exemple #1
0
        public void AddRating(RatingEntity rating)
        {
            if (ReferenceEquals(rating, null))
            {
                throw new ArgumentNullException(nameof(rating));
            }

            photoRepository.AddRating(rating.ToDalRating());
            uow.Commit();
        }
Exemple #2
0
 public void UpdateRating(RatingEntity rating)
 {
     ratingRepository.Update(rating.ToDalRating());
     uow.Commit();
 }
 public void DeleteEntity(RatingEntity rating)
 {
     repository.Delete(rating.ToDalRating());
     uow.Commit();
 }