Thursday, November 16, 2017

How do I cast an IHttpActionResult from a controller to something sane in C#?

IHttpActionResult actionResult = await myController.Whatever();
var result = actionResult as OkNegotiatedContentResult<string>;

No comments:

Post a Comment