控制成员角色
[Authorize(Rroles="Administator,SuperAdmin")]
public class StoreManagerController:Controller
或者授权给部分用户
[Authorize(Users="jon,pp")]
[Authorize(Roles="admin",Users="jon,pp")]
2021-07-10 19:05:57
控制成员角色
[Authorize(Rroles="Administator,SuperAdmin")]
public class StoreManagerController:Controller
或者授权给部分用户
[Authorize(Users="jon,pp")]
[Authorize(Roles="admin",Users="jon,pp")]