Q2.webp
M

Q2.webp

Kizspy | Question: 2
(Choose 1 answer)
How would you access a query string parameter named sort in a controller action?
A. [HttpGet] public IActionResult Get([FromRoute] string sort) { /*...*/}
B. [HttpGet] public IActionResult Get([FromBody] string sort) { /*...*/ }
C. [HttpGet] public IActionResult Get([FromHeader] string sort) { /*..*/ }
D. [HttpGet] public IActionResult Get([FromQuery] string sort) { /*...*/}
  • Like
Reactions: namnamnam1305

Thông tin

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

Share this media

Back
Bên trên Bottom