Unfortunately that is how the WebApi is set up by default for out of the
box interaction. To do what you are talking about means you'll have to
perform some work behind the scenes.
1. You will need to come up a response object like so:
class Response
{
List<Vehicle> Vehicles;
List<House> Houses;
}
2. your controller will need to perform the appropriate queries and
populate the lists
3. You return that back as your response
It's not an ideal solution, but it works for get only type requests, you
are going to have to add methods to your WebApi controller if you want to
be able to update or add data.
Hope this helps.
--
You received this message because you are subscribed to the Google Groups
"AngularJS" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/angular.
For more options, visit https://groups.google.com/groups/opt_out.