Skip to content

Instantly share code, notes, and snippets.

@A2H111
Created March 27, 2017 04:38
Show Gist options
  • Save A2H111/f60547b7170c1bb2245d93cd49ff4061 to your computer and use it in GitHub Desktop.
Save A2H111/f60547b7170c1bb2245d93cd49ff4061 to your computer and use it in GitHub Desktop.
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