Should it be used whenever an input is provided for an action method?
This is accurate when you use the presentation model presented as an action argument, and this presentation model has some validation associated with it (for example, data annotations). Here's a regular template:
public class MyViewModel { [Required] public string Name { get; set; } }
and then:
[HttpPost] public ActionResult Foo(MyViewModel model) { if (!ModelState.IsValid) {
source share