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; }
public void UpdateAlbumComment(AlbumComment item) { _unitOfWork.AlbumComments.Update(item); _unitOfWork.Save(); }