Create Restfull Service in C# and Get Data in HTML Page using JQuery

Now First create new project .

Add new WebApplication, here name is Restfull Demo.

cs code

Then add class file , here name is RestService.
Now  we add three model references in webapplication.
 


Now write code for Restservice.cs file.  for code download source code.
 
Then Service route add in global resource file.
 

Now using the Serviceroute you get restfull service data.
For this source code, we get employee data using following url.

Also we can specific employee data using employee id.
 
Now We add EmployeeDetails html page and get this data using json, jquery. and also add textbox for id wise employee search.
 
 
 
 
X

Build smarter apps with Machine Learning, Bots, Cognitive Services - Start free.

Start Learning Now