I have the following Angular Service:
GetEstateTypes: function () {
return $http.get('api/estate-types');
}
Which returns the following:
[
{"id":1,"name":"House"},
{"id":2,"name":"Apartment"},
{"id":3,"name":"Shop"},
{"id":4,"name":"Warehouse"}
]
How can I create a filter so I can pass a list of Ids to GetEstateTypes and filter the response?
For example, by passing 1 and 2 the response would be filtered and GetEstateTypes would return only the first two rows.