示例#1
0
        internal IEnumerable <Keep> GetByVaultId(int vaultId, string userId)
        {
            var exists = _repo.GetByVaultId(vaultId, userId);

            if (exists == null)
            {
                throw new Exception("Invalid ID");
            }
            return(exists);
        }
示例#2
0
        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);
        }