private EF.Peer externalPeerToEFPeer(Entities.Peer peer) { EF.Peer EFPeer = new EF.Peer(); EFPeer.PeerHostName = peer.PeerHostName; EFPeer.Comments = peer.Comments; EFPeer.PeerID = peer.PeerID; return(EFPeer); }
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(); }
public void AddFiles(List <FreeFilesServerConsole.EF.File> FilesList, Entities.Peer peer) { SaveFile(); }