18 lines
438 B
C#
18 lines
438 B
C#
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; }
|
|
}
|
|
}
|