using FJPSite.Enums;
using Microsoft.AspNetCore.Authorization;

namespace FJPSite.Helpers;

public class PermissionRequirement : IAuthorizationRequirement
{
    public FeatureEnum Feature { get; }
    public ActionEnum Action { get; }
    public PermissionRequirement(FeatureEnum feature, ActionEnum action)
    {
        Feature = feature;
        Action = action;
    }
}
