public virtual async Task <bool> IsGrantedAsync(string permissionName)
 {
     return(CodeZeroSession.UserId.HasValue && await _userManager.IsGrantedAsync(CodeZeroSession.UserId.Value, permissionName));
 }
 public virtual async Task <bool> IsGrantedAsync(long userId, string permissionName)
 {
     return(await _userManager.IsGrantedAsync(userId, permissionName));
 }