public ReviewDto AddReview(string reviewerName, string content,
                                   int rating, long recordingId)
        {
            RecordingDataSet.Review review = AddReviewToRecording(reviewerName,
                                                                  content, rating, recordingId);

            return(RecordingAssembler.WriteReview(review));
        }
Beispiel #2
0
        public RecordingDto FindByRecordingId(long id)
        {
            RecordingDataSet.Recording recording = FindById(id);
            if (recording == null)
            {
                return(null);
            }

            return(RecordingAssembler.WriteDto(recording));
        }