public async Task AddOwner(OwnershipRegistration registration, OwnershipOwner owner)
        {
            OwnershipRecord record = await Load();

            record.AddOwner(registration, owner);
            await Save(record);
        }
        public async Task RemoveOwner(OwnershipRegistration registration, OwnershipOwner owner)
        {
            OwnershipRecord record = await Load();

            record.RemoveOwnerFromRegistration(registration, owner);
            await Save(record);
        }
        public async Task DisableTenant(string tenant)
        {
            OwnershipRecord record = await Load();

            record.DisableTenant(tenant);
            await Save(record);
        }
        public async Task <bool> HasOwner(OwnershipRegistration registration, OwnershipOwner owner)
        {
            OwnershipRecord record = await Load();

            return(record.HasOwner(registration, owner));
        }
        public async Task <bool> HasVersion(OwnershipRegistration registration, string version)
        {
            OwnershipRecord record = await Load();

            return(record.HasVersion(registration, version));
        }
        public async Task <bool> HasTenantEnabled(string tenant)
        {
            OwnershipRecord record = await Load();

            return(record.HasTenantEnabled(tenant));
        }
 async Task Save(OwnershipRecord record)
 {
     await Save(record.Base, record.Graph);
 }
        public async Task <IEnumerable <string> > GetVersions(OwnershipRegistration registration)
        {
            OwnershipRecord record = await Load();

            return(record.GetVersions(registration));
        }
        public async Task <IEnumerable <OwnershipRegistration> > GetRegistrations(OwnershipOwner owner)
        {
            OwnershipRecord record = await Load();

            return(record.GetRegistrations(owner));
        }