using System;
using System.Collections.Generic;
using System.Text;

namespace Performance.DtoModels
{
    public class PersonParamsRequest
    {
        public const int MaxPageSize = 50;

        public int PageNumber { get; set; } = 1;

        private int _pageSize = 10;
        public int PageSize
        {
            get { return _pageSize; }
            set
            {
                _pageSize = value > MaxPageSize ? MaxPageSize : value;
            }
        }

        public string SearchQuery { get; set; }
    }
}
