I have a simple DTO with just an Int inside:
[Route("/cells/{Id}")]
public class CellDetail
{
public int Id { get; set; }
}
Using a URL like /cells/abc
gives med a RequestBindingException
in JSON, but the HTML view is still rendered via my .cshtml
file, which obviously fails due to @Model
== null.
Shouldn't it give a HTML error page instead? How does it even know which .cshtml view to select?