Answers for "how to write web service for API in c#"

C#
0

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>();
}
Posted by: Guest on October-01-2021

C# Answers by Framework

Browse Popular Code Answers by Language