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(); }
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(); }