public IHttpActionResult GetEmployees()
{
var results = (from d in db.Employees
join f in db.Departments
on d.DepartmentId equals f.ID
select new
{
Id = d.ID,
Name = d.Name,
Department = f.Description
}).ToList();
return Ok(results);
}
public async Task<IHttpActionResult> GetEmployees()
{
}
Best Regards,
Jerry Cai
.NET forums are moving to a new home on Microsoft Q&A, we encourage you to go to Microsoft Q&A for .NET for posting new questions and get involved today.
Member
47 Points
181 Posts
Async
Feb 19, 2021 05:04 AM|jagjit saini|LINK
Hi
How to change below code to Async
Thanks
Participant
990 Points
327 Posts
Re: Async
Feb 19, 2021 08:55 AM|Jerry Cai|LINK
Hi,jagjit saini
You can try this:
Best Regards,
Jerry Cai