I am using and Web API to perform some task, and when the task is finished the API return me a object in the OK method.
The code:
[Route("upload")]
[HttpPost]
public async Task<IHttpActionResult> PostFormData()
{
//Create the object
var blob = new BlobUploadModel();
//Do some tasks
...
//Return
return Ok(blob);
}
How can I get this blob object in the response which, I think, should be a IHttpActionResult?
Any help is appreciated!