public Yield GetComment(DreamContext context, DreamMessage request, Result <DreamMessage> response) { PageBE page = null; CommentBE comment = null; var commentId = context.GetParam <uint>("commentid", 0); if (commentId > 0) { comment = CommentBL.GetComment(commentId); } else { GetCommentFromRequest(context, Permissions.READ, out page, out comment); } response.Return(DreamMessage.Ok(CommentBL.GetCommentXml(comment, null))); yield break; }