标签: c#
我想知道而不是修复角色字符串
[System.Web.Http.Authorize(Roles ="Admin,UlooDaPahta,ChawalManager," )]
我们可以在角色中使用字符串/数组吗?
[System.Web.Http.Authorize(Roles =MyStr)] [System.Web.Http.Authorize(Roles =MyArray)]
感谢