我有以下代码:
这里的问题是在ASP.Net Core中,OkNegotiatedContentResult未知。有人有解决这个问题的想法吗?
public IActionResult PostOpenBase64([FromBody]Open64Request request)
{
string param = Base64.DecodeFromBase64(request.b64);
EvaluationParameter ep =
JsonConvert.DeserializeObject<EvaluationParameter>(param);
OpenRequest or = new OpenRequest();
FindRequest fr = new FindRequest();
or.Parameters = ep;
fr.Parameters = ep;
IActionResult ret = Post(fr);
var contentResult = ret as OkNegotiatedContentResult<FindResponse>;
FindResponse response = contentResult.Content;
if (response.MustOpen || response.EvaluationId == 0)
{
Post(or); //Open
ret = Post(fr);
}
return ret;
}
这里的问题是在ASP.Net Core中,OkNegotiatedContentResult未知。有人有解决这个问题的想法吗?
Microsoft.AspNetCore.Mvc.OkObjectResult
وˆ–者Microsoft.AspNetCore.Mvc.OkResult
è؟™ن¸ھهŒ…هگ—ï¼ں - undefinedFindResponse findResponse = new FindResponse();
var contentResult = ret as OkObjectResult(findResponse);
- undefined