Beispiel #1
0
        public string GetWidgetDomData(string value)
        {
            //Call the domain service
            string domServerResponse = _domService.GetWidgetDomData(value);
            //Append the AppService result
            var result = new StringBuilder();

            result.Append(_dataRepository.GetData(value));
            result.Append(Environment.NewLine);
            result.Append(domServerResponse);
            return(result.ToString());
        }
 private void buttonCallDom_Click(object sender, RoutedEventArgs args)
 {
     try
     {
         var result = _widgetDomService.GetWidgetDomData(textBoxInput.Text);
         SetResult(result);
     }
     catch (Exception e)
     {
         SetResult(BuildExceptionResult(e));
     }
 }