return ok c# code example
Example 1: asp.net core task iactionresult
asp.net core task iactionresult
Example 2: ihttpactionresult to object c#
[TestMethod]
public void TestGet()
{
IHttpActionResult actionResult = controller.Get();
var contentResult = actionResult as OkNegotiatedContentResult<string>;
Assert.AreEqual("", contentResult.Content);
}