Closed hueifeng closed 4 years ago
@hueifeng This doesn't solved the issue. You will still get an empty result as the response. For example:
private IEnumerable<PersonResponse> GetMockData()
{
return new List<PersonResponse>{
new PersonResponse{
FirstName = "Vince",
LastName = "Durano",
}
};
}
[HttpGet]
[AutoWrapIgnore]
public IActionResult ActionGet()
{
var person = GetMockData();
return Ok(person);
}
In that example, you will see an empty result instead of the expected data as the output.
By the way, I have released a new version of AutoWrapper here that includes a fix for the content-type as well: https://vmsdurano.com/autowrapper-4-2-0-released/
@hueifeng would you be able to look at why the test failed on the last commit?
@proudmonkey ok, I will test it.
@proudmonkey I fixed it in this PR #56