Esempio n. 1
0
        public void AddFiles(List <FreeFilesServerConsole.EF.File> FilesList, Entities.Peer peer)
        {
            fileRepository.AddFiles(FilesList);
            PeerRepository peerRepository = new PeerRepository(_freeFilesObjectContext as FreeFilesServerConsole.IUnitOfWork);

            peerRepository.AddPeer(FreeFilesServerConsole.EntityUtility.externalPeerToEFPeer(peer));
            SaveFile();
        }
Esempio n. 2
0
        public void AddFiles(List <Entities.File> FilesList, Entities.Peer peer)
        {
            FileRepository fileRepository = new FileRepository(_freeFilesObjectContext as FreeFilesServerConsole.IUnitOfWork);

            this.AddPeer(externalPeerToEFPeer(peer));
            fileRepository.AddFiles(externalFileToEFFile(FilesList));

            SaveFile();
        }