public Task <bool> CreateRoleAsync(IPermissionRole role) { if (role == null) { throw new ArgumentNullException(nameof(role)); } return(m_BasePermissionRoleStore.CreateRoleAsync(role)); }
public RocketPermissionsProviderResult AddGroup(RocketPermissionsGroup @group) { var permissionGroup = ConvertToGroup(@group); return(AsyncHelper.RunSync(async() => { if (await m_PermissionRoleStore.CreateRoleAsync(permissionGroup)) { return RocketPermissionsProviderResult.Success; } return RocketPermissionsProviderResult.UnspecifiedError; })); }
public RocketPermissionsProviderResult AddGroup(RocketPermissionsGroup @group) { if (@group == null) { throw new ArgumentNullException(nameof(@group)); } var permissionGroup = ConvertToGroup(@group); return(AsyncHelper.RunSync(async() => { if (await m_PermissionRoleStore.CreateRoleAsync(permissionGroup)) { return RocketPermissionsProviderResult.Success; } return RocketPermissionsProviderResult.UnspecifiedError; })); }
public Task <bool> CreateRoleAsync(IPermissionRole role) { return(m_BasePermissionRoleStore.CreateRoleAsync(role)); }