public ChannelBuilder AllowPermissionForRole(int roleNumber, string permission) { var role = _group.Role(roleNumber); _builder.AddBuildAction(async() => await _groupsModuleFacade.SendAsync(new AllowPermissionForRoleCommand(_builder._userIdContext, _group.GroupId, _channel.ChannelId, role.RoleId, permission))); return(this); }
public RoleBuilder AddPermission(string name) { _builder.AddBuildAction(async() => await _groupsModuleFacade.AddPermission(_builder._userIdContext, _group.GroupId, _role.RoleId, name)); return(this); }
public MemberBuilder AssignRole(int roleNumber) { var role = _group.Role(roleNumber); _builder.AddBuildAction(async() => await _facade.AssignRole(_builder._userIdContext, _group.GroupId, _memberContext.UserId, role.RoleId)); return(this); }