コード例 #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();
 }