Kizspy | Question: 46
(Choose 1 answer)
If a request is made to /products?id=abc for an action defined as public IActionResult GetProduct(int id), what will be
the state of ModelState?
A. ModelState.IsValid will be true, and id will be 0.
B. An InvalidCastException will be thrown.
C. ModelState.IsValid will be false because "abc" cannot be converted to an integer.
D. id will be null.