You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
17 lines
514 B
17 lines
514 B
using System.ComponentModel.DataAnnotations;
|
|
using Microsoft.AspNetCore.Mvc.ModelBinding;
|
|
|
|
namespace HeartTrackAPI.Request;
|
|
|
|
public class PageRequest
|
|
{
|
|
public string? OrderingPropertyName { get; set; } = null;
|
|
public bool? Descending { get; set; } = false;
|
|
|
|
// [Range(0, int.MaxValue, ErrorMessage = "Count must be greater than 0")]
|
|
public int Index { get; set; } = 0;
|
|
|
|
// [Range(0, int.MaxValue, ErrorMessage = "Count must be greater than 0")]
|
|
public int Count { get; set; } = 1;
|
|
}
|