R

Ram Sharma • 3.40K Points
Extraordinary

Q. What is `ModelState.IsValid` used for?

  • (A) Validates view
  • (B) Checks user session
  • (C) Checks if the posted model satisfies validation rules
  • (D) Compares two models

Explanation by: Ram Sharma
`ModelState.IsValid` is used to verify whether the model passed the validation attributes.

You must be Logged in to update hint/solution

Discusssion

Login to discuss.

Be the first to start discuss.