private void setStatus(Comment comment, CommentStatus status) { if (!_userContext.IsAuthenticated) { throw new UserNotLoggedInException("Approving comment requires User to be logged in."); } comment.CheckReferenceIsNull(nameof(comment)); comment.Status = status; comment.ModifierUserId = _userContext.UserId; comment.ModifyDate = _dateService.UtcNow(); }