Here Mudassar Ahmed Khan has explained with an example, how to call Web API 2 Controller method using WebClient class in ASP.Net with C# .Net.
The Web API 2 Controller method will fetch records from database using Entity Framework in ASP.Net MVC and later it will be called (consumed) in ASP.Net Web Forms (ASPX) page using WebClient class in ASP.Net.
↧