Open GaProgMan opened 3 years ago
Rather than using the if conditions at lines 29 and 49 of the BookController.cs file, implement a set of custom validation attributes.
This work is to be done after #6 (create integration tests)
PagedRequest
ValidGuidAttribute
ValidPagedRequestAttribute
PageNumber
PerPage
BookContolller
Description
Rather than using the if conditions at lines 29 and 49 of the BookController.cs file, implement a set of custom validation attributes.
This work is to be done after #6 (create integration tests)
High-Level Proposed Solution
PagedRequest
instanceConsiderations
Requirements
ValidGuidAttribute
or similarPagedRequest
instance is valid.ValidPagedRequestAttribute
PagedRequest
has:PageNumber
value which is greater than 0PerPage
value which is greater than 0BookContolller
class