I have a stored procedure I have written which simply queries the DB and returns the rows. I incorporated it into my .NET project through the use of the Entity Framework and through my database context I have complete access to the query. The issue I face is that I have to use async-await to pass the results but I am not sure what to add to my command for this to execute correctly?
Also an error I notice appearing under my the execution line when I add "await" is : int' does not contain a definition for 'getawaiter'
/**Search**/
// POST: api/postsearch
[System.Web.Http.HttpPost, System.Web.Http.Route("postsearch")]
public async Task<IHttpActionResult> PostSearch(string value)
{
var _ot = _output.searchLog(value);
return Ok(_ot);
}
_output.searchLog?