Beispiel #1
0
 public VaultKeep Post([FromBody] VaultKeep vaultkeep)
 {
     if (ModelState.IsValid)
     {
         vaultkeep = new VaultKeep(vaultkeep.VaultId, vaultkeep.KeepId, vaultkeep.UserId);
         return(_repo.CreateVaultKeep(vaultkeep));
     }
     throw new System.Exception("invalid createVaultKeep");
 }