コード例 #1
0
 public virtual async Task <bool> IsGrantedAsync(string permissionName)
 {
     return(CodeZeroSession.UserId.HasValue && await _userManager.IsGrantedAsync(CodeZeroSession.UserId.Value, permissionName));
 }
コード例 #2
0
 public virtual async Task <bool> IsGrantedAsync(long userId, string permissionName)
 {
     return(await _userManager.IsGrantedAsync(userId, permissionName));
 }