Created
March 27, 2017 04:38
-
-
Save A2H111/f60547b7170c1bb2245d93cd49ff4061 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public async Task<IActionResult> Index() | |
{ | |
//Creating Client object of Service Reference | |
SimpleServiceReference.SimpleServiceClient client = new SimpleServiceReference.SimpleServiceClient(); | |
//Call the method from WCF Service | |
string result = await client.GetDataAsync(1); | |
return View(); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment