Click here to Skip to main content
15,885,366 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
I have a web api project. And my controller contains one Get method as shown below :


[Queryable]
public IQueryable< Employees > Get(FilterEntity filter)
{
var employees = this.context.Employees.ToList();
return employees.Take(3).AsQueryable();
}

Public class FilterEntity
{
public List< string > roleId {get;set;}
public List< string > departmentId {get;set;}
public List< string > designationId {get;set;}
}


Now i want to consume above get method using httpClient and want to pass the object of the filter.

So can anyone tell me how can i achieve this ?
Posted
Updated 6-Mar-13 19:01pm
v3

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900