.Paginate(source, paging);
+
+
+ foreach (GanjoorCommentFullViewModel comment in paginatedResult.Items)
+ {
+ comment.HtmlComment = _Linkify(comment.HtmlComment);
+ comment.HtmlComment = $"{comment.HtmlComment.Replace("\r\n", "\n").Replace("\n\n", "\n").Replace("\n", "
".Replace("ي", "ی"))}
";
+ }
+
+ return new RServiceResult<(PaginationMetadata PagingMeta, GanjoorCommentFullViewModel[] Items)>(paginatedResult);
+ }
+ catch (Exception exp)
+ {
+ return new RServiceResult<(PaginationMetadata PagingMeta, GanjoorCommentFullViewModel[] Items)>((PagingMeta: null, Items: null), exp.ToString());
+ }
+ }
+
///
/// get poem images by id (some fields are intentionally field with blank or null),