public CommentDto SaveComment(CommentDto comment) { var entity = comment.Id.HasValue && comment.Id != Guid.Empty ? _reviewService.GetReview(comment.ReviewId).Comments.First(x => x.Id == comment.Id) : new Comment(comment.StoreId, comment.ReviewId); entity = EntityMapper.CommentDtoToEntity(comment, entity); _reviewService.SaveComment(entity); return(EntityMapper.CommentEntityToDto(entity)); }