Monday, March 13, 2017

the FromUri attribute for query string parameters

Use it like so, yes, at the level of the individual variable:

public async Task<IHttpActionResult> GetWhatever ([FromUri] long customerNumber,
      [FromUri] string otherThing, CancellationToken token) {

No comments:

Post a Comment