diff --git a/NorthwindCRUD/Controllers/CategoriesController.cs b/NorthwindCRUD/Controllers/CategoriesController.cs index 83fcb7a..4930348 100644 --- a/NorthwindCRUD/Controllers/CategoriesController.cs +++ b/NorthwindCRUD/Controllers/CategoriesController.cs @@ -53,7 +53,7 @@ public ActionResult GetAll() [HttpGet("GetCategoriesWithSkip")] public ActionResult> GetCategoriesWithSkip( [FromQuery][Attributes.SwaggerSkipParameter][Range(0, int.MaxValue)] int? skip, - [FromQuery][Attributes.SwaggerTopParameter][Range(0, int.MaxValue)] int? top, + [FromQuery][Attributes.SwaggerTopParameter][Range(1, int.MaxValue)] int? top, [FromQuery][Attributes.SwaggerOrderByParameter] string? orderBy) { try