narsil/Tanshu.Accounts.Contracts/Attributes/PermissionAttribute.cs

18 lines
438 B
C#
Raw Normal View History

using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
namespace Tanshu.Accounts.Contracts
{
[AttributeUsage(AttributeTargets.Field | AttributeTargets.Property | AttributeTargets.Method)]
public class PermissionAttribute : Attribute
{
public PermissionAttribute(RoleConstants role)
{
Role = role;
}
public RoleConstants Role { get; set; }
}
}