Q46.webp
M

Q46.webp

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.

Thông tin

Category
PRN232
Thêm bởi
Minh Châu1
Ngày thêm
Lượt xem
2,300
Lượt bình luận
7
Rating
0.00 star(s) 0 đánh giá

Share this media

Back
Bên trên Bottom