namespace PhonebookService.Domain.Queries; /// /// A model that represents a search/filter query for phonebook /// public class PhonebookFilterQuery { /// /// Number of a page to show. Starts from one. /// /// Default is 1 public int Page { get; set; } = 1; /// /// Optional property to filter records that contain the value in their /// public string? FirstName { get; set; } /// /// Optional property to filter records that match the city name /// public string? City { get; set; } /// /// Optional property to filter records that match the phone number /// public string? Phone { get; set; } /// /// Optional property to filter records that match the zip code /// public string? ZipCode { get; set; } /// /// Optional property to sort the result collection by /// /// Default is 0 (None) public SortMode Sort { get; set; } = SortMode.None; }