public IActionResult Index()
 {
     ViewBag.result1  = demoServiceClient.HelloAsync().Result;
     ViewBag.result2  = demoServiceClient.HiAsync("Mike").Result;
     ViewBag.result3  = demoServiceClient.SumAsync(1, 2).Result;
     ViewBag.product  = productServiceClient.FindAsync().Result;
     ViewBag.products = productServiceClient.FindAllAsync().Result;
     return(View());
 }
        public void OnGet()
        {
            DemoServiceClient demoServiceClient = new DemoServiceClient();

            Result1 = demoServiceClient.DoWorkAsync().Result;
            Result2 = demoServiceClient.HiAsync("ABC").Result;
            Result3 = demoServiceClient.SumAsync(1, 2).Result;

            ProductService1Client productService1Client = new ProductService1Client();

            product  = productService1Client.findAsync().Result;
            products = productService1Client.findAllAsync().Result;
        }