public void AddRating(RatingEntity rating) { if (ReferenceEquals(rating, null)) { throw new ArgumentNullException(nameof(rating)); } photoRepository.AddRating(rating.ToDalRating()); uow.Commit(); }
public void UpdateRating(RatingEntity rating) { ratingRepository.Update(rating.ToDalRating()); uow.Commit(); }
public void DeleteEntity(RatingEntity rating) { repository.Delete(rating.ToDalRating()); uow.Commit(); }