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:
- The value of
totalmust be greater than zero. - The parameter
totalcannot be empty.
Ask