I have a controller method with the following signature
[HttpGet]
[Route("results")]
public List<IResult> GetResults()
{
return repo.GetResults();
}
Not surprisingly, I get a JSON .NET exception saying JSON .NET can't resolve IResult to a concrete type. Is there a way to provide JSON .NET the concrete class (Result) so I don't have to change the singature of the method?