Beispiel #1
0
 public FeedbackReply GetFeedbackReplyForQuestion(long questionId)
 {
     // return SampleData.FeedbackReplies().Where(r => r.feedbackid == questionId)?.FirstOrDefault();
     return(_feedbackReplyClientHelper.GetData(
                FilterDefinitionHandler.FilterFeedBackReply(questionId),
                _feedbackReplyCollection).FirstOrDefault());
 }
Beispiel #2
0
        public List <Feedback> GetAllPendingFeedbacks()
        {
            //return SampleData.FeedbackList().Where(x => x.status == "pending" && x.type == "feedback").ToList();
            var feedbackList = _feedbackClientHelper.GetData(FilterDefinitionHandler.FilterFeedbacksByTypeAndStatus(),
                                                             _feedbackCollection);

            var replyList = _feedbackReplyClientHelper.GetData(FilterDefinitionHandler.FilterFeedBackReply(0),
                                                               _feedbackReplyCollection);

            if (replyList != null && replyList.Any())
            {
                foreach (var reply in replyList)
                {
                    Feedback feedback = new Feedback
                    {
                        question        = reply.feedback,
                        createtimestamp = reply.createtimestamp
                    };
                    feedbackList.Add(feedback);
                }
            }

            return(feedbackList);
        }