Beispiel #1
0
 internal VaultKeep Create(VaultKeep newVaultKeep, string id)
 {
     if (newVaultKeep.CreatorId != id)
     {
         throw new System.Exception("can't add keeps to other peoples vaults");
     }
     _repo.Create(newVaultKeep);
     _krepo.KeepInc(newVaultKeep.KeepId);
     return(newVaultKeep);
 }