示例#1
0
        public void AddFeedback(string message)
        {
            var feedbackService = new FeedbackServiceClient();

            feedbackService.AddFeedback(message);
            feedbackService.Close();
        }
示例#2
0
        public IReadOnlyList <FeedbackDto> GetFeedbacks()
        {
            var feedbackService = new FeedbackServiceClient();
            var feedbacks       = feedbackService.GetFeedbacks();

            feedbackService.Close();

            return(feedbacks.Select(x => new FeedbackDto(x.Id, x.Message, x.Date)).ToList());
        }