internal IEnumerable <Keep> GetByVaultId(int vaultId, string userId) { var exists = _repo.GetByVaultId(vaultId, userId); if (exists == null) { throw new Exception("Invalid ID"); } return(exists); }
public IEnumerable <Keep> GetByVaultId(int vaultId, string userId) { var exists = _vaultKeepRepo.GetByVaultId(vaultId, userId); if (exists == null) { throw new Exception("No Vault exists with that Id"); } return(exists); }