﻿using EzApp.Search.Core;
using System;

namespace EzApp.Web.Core.Search
{
    public class EzWebRequestPaginatedCommonEntityQuery<TEntityId, TEntityFilters>
        :
        EzWebRequestPaginatedEntityQuery<TEntityId, TEntityFilters>
        where TEntityFilters : class, IEzCommonEntityFilters<TEntityId>, new()
        where TEntityId : IEquatable<TEntityId>
    {
        public string Keywords { get; set; }

        protected override void SetFilterValues(TEntityFilters filters)
        {
            filters.Keywords = Keywords;

            base.SetFilterValues(filters);
        }
    }
}
