예제 #1
0
        internal object Update(Vault update, string id)
        {
            var vault = isVaultOwner(id, update.Id);

            vault.Name        = update.Name ?? vault.Name;
            vault.Description = update.Description ?? vault.Description;
            vault.IsPrivate   = update.IsPrivate;
            return(_repo.Update(vault));
        }