﻿using Vstack.Services.Domain;
using Vstack.Services.General;

namespace Vstack.Services.Filters
{
    public abstract class EntityCustomStoredProcedurePrimaryDtoFilter<TDmn, TPermissions>
        : EntityCustomStoredProcedurePrimaryFilter<TDmn>, IEntityCustomStoredProcedurePrimaryDtoFilter<TPermissions>
        where TDmn : class, IServiceDomain
        where TPermissions : RestPermissions
    {
        protected EntityCustomStoredProcedurePrimaryDtoFilter()
        {
        }

        protected EntityCustomStoredProcedurePrimaryDtoFilter(DeletedState deletedState)
            : base(deletedState)
        {
        }

        public abstract DtoRestStatus GetPermissions(TPermissions permissions);
    }
}