hasancali_NetCoreAPI/Application/Common/Auth/Authorization/PermissionsRequirement.cs
using System;
using System.Collections.Generic;
using Microsoft.AspNetCore.Authorization;

namespace Application.Common.Auth.Authorization
{
    public class PermissionsRequirement : IAuthorizationRequirement
    {
        public IEnumerable<string> Permissions { get; }

        public PermissionsRequirement(
            IEnumerable<string> permissions)
        {
            Permissions = permissions ?? throw new ArgumentNullException(nameof(permissions));
        }
    }
}