예제 #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());
        }