How to access JsonResult data when testing in ASP.NET MVC

前端 未结 3 1711
北海茫月
北海茫月 2020-12-17 18:02

I have this code in C# mvc Controller:

[HttpPost]
    public ActionResult Delete(string runId)
    {
        if (runId == \"\" || runId == null)
                 


        
3条回答
  •  不思量自难忘°
    2020-12-17 18:13

    If you returned an actually non-anonymous class, you could have just done:

    var strongTypedResult = result as ;

提交回复
热议问题