Search⌘ K

Validating the Order Model

Add validation rules for the Order model in the application.

We'll cover the following...

We want to validate two things for the Order model:

  1. The value of total must be greater than zero.
  2. The parameter total cannot be empty.
...