0

Is it possible to invoke an action while additionally querying OData resource?

I'd like to assign a list of resources to a person (selected in the query string) by using one OData POST query.

Ie. is it possible to perform something like this (in pseudo-query):

[Post]http://hostname.com/Resource/Assign?$filter=name eq 'resource name'

A.D.
  • 425
  • 3
  • 15

1 Answers1

1

I am using LINQtoQueryString

In the action method you get the value of the QueryString from the request, and you can use that library to filter a collection of items based on the query provided in the query string.

Dimitar Tsonev
  • 3,711
  • 5
  • 40
  • 70