Пример #1
0
 internal DTOVaultedKeep Create(DTOVaultedKeep DTOVK)
 {
     if (_repo.hasRelationship(DTOVK))
     {
         throw new Exception("you already have that keep in this vault");
     }
     return(_repo.Create(DTOVK));
 }
Пример #2
0
 internal DTOVaultKeep Create(DTOVaultKeep newVaultKeep)
 {
     if (_repo.hasRelationship(newVaultKeep))
     {
         throw new Exception("That Keep is Already in that Vault");
     }
     return(_repo.Create(newVaultKeep));
 }