示例#1
0
        public void Create(VaultKeep newVaultKeep)
        {
            VaultKeep exists = _repo.Find(newVaultKeep);

            if (exists != null)
            {
                throw new Exception("Keep already in Vault");
            }
            _repo.Create(newVaultKeep);
            // return "Success";
        }
示例#2
0
        internal string Create(VaultKeep newData)
        {
            VaultKeep exists = _vkr.Find(newData.KeepId, newData.VaultId);

            if (exists == null)
            {
                _vkr.Create(newData);
            }
            else if (exists != null)
            {
                return("Already exists");
            }
            return("Successfully Created");
        }
示例#3
0
        internal void Create(VaultKeep newData)
        {
            VaultKeep exists = _repo.Find(newData);

            if (exists != null)
            {
                throw new Exception("This is already in your collection");
            }
            _repo.Create(newData);
        }
        internal string Create(VaultKeep newData)
        {
            VaultKeep exists = _repo.Find(newData.KeepId, newData.VaultId);

            if (exists == null)
            {
                _repo.Create(newData);
            }
            else if (exists != null)
            {
                return("THIS HAS ALREADY BEEN CREATED");
            }
            return("successfuly created");
        }
示例#5
0
        internal string Create(VaultKeep newVaultKeep)
        {
            VaultKeep exists = _vaultKeepRepo.Find(newVaultKeep.KeepId, newVaultKeep.VaultId);

            if (exists == null)
            {
                _vaultKeepRepo.Create(newVaultKeep);
            }
            else if (exists != null)
            {
                return("already exists");
            }
            return("successfull");
        }