public FileModel Save(TcpClient client, string path)
        {
            byte []   fileData     = NetworkInfrastructure.GetNetworkDate(client);
            FileModel recievedFile = Serializers.DeserializeObject <FileModel>(fileData);

            File.WriteAllBytes(path.ToString() + "\\" + recievedFile.FileName, recievedFile.Content);
            Console.WriteLine("Client readed");
            // dbHandler.AddFile(recievedFile, path.ToString());
            return(recievedFile);
        }
        public FileTcpServer(int _port, List <TcpClient> _connectedClients, NetworkInfrastructure _networkInfrastructure)
        {
            tcpListenre = new TcpListener(IPAddress.Any, _port);
            tcpListenre.Start();
            connectedClients      = _connectedClients;
            networkInfrastructure = _networkInfrastructure;
            path.Append(_port.ToString());

            if (!Directory.Exists(path.ToString()))
            {
                Directory.CreateDirectory(path.ToString());
            }
        }