public CommentsResponse GetIdeaComments(string name, string ideaId, string email, string author, int pageSize, int currentPage) { List <Comment> comments = _iIdeaRepository.GetIdeaComments(ideaId, email, author, pageSize, currentPage); if (comments.Any()) { if (comments.First().IsSuccess) { return(new CommentsResponse(comments.First().IsSuccess, comments.First().Message, comments)); } else { return(new CommentsResponse(comments.First().IsSuccess, comments.First().Message, null)); } } return(new CommentsResponse(true, "", null)); }