예제 #1
0
        public int CreateAlbumComment(AlbumComment item)
        {
            _unitOfWork.AlbumComments.Add(item);
            _unitOfWork.Save();

            var albumComment = _unitOfWork.AlbumComments
                .Find(c => c.CreationDate == item.CreationDate && c.AuthorId == item.AuthorId)
                .First();
            return albumComment.Id;
        }
예제 #2
0
 public void UpdateAlbumComment(AlbumComment item)
 {
     _unitOfWork.AlbumComments.Update(item);
     _unitOfWork.Save();
 }