Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR CSHARP

how to write web service for API in c#

[HttpGet]
public IEnumerable<Employee> getEmployeeById( int id)
{
var Emp = from emp in getEmployees()
where emp.EmployeeId.Equals(id)
select emp;

return Emp.ToList<Employee>();
}
Source by kindsonthegenius.com #
 
PREVIOUS NEXT
Tagged: #write #web #service #API
ADD COMMENT
Topic
Name
9+9 =