public IEnumerable <Client.Models.Client> GetClient()
        {
            IEnumerable <Client.Models.Client> lstClients = null;

            using (IClientsChannel channel = channelFactory.CreateChannel())
            {
                try
                {
                    lstClients = from client in channel.GetClients(new ClientData {
                        Action = "R"
                    })
                                 select
                                 new Client.Models.Client
                    {
                        ClientCode   = client.ClientCode,
                        ClientName   = client.ClientName,
                        ClientOffice = client.ClientOffice,
                        CountryCode  = client.CountryCode,
                        OrgCode      = client.OrgCode
                    };
                }
                catch (System.Exception ex)
                {
                    throw ex;
                }
            }
            return(lstClients);
        }
 public bool MoveFile(ClientData _model)
 {
     using (IClientsChannel channel = channelFactory.CreateChannel())
     {
         try
         {
             return(channel.FileManager(_model));
         }
         catch (System.Exception ex)
         {
             throw ex;
         }
     }
 }
 public bool ManageFile()
 {
     using (IClientsChannel channel = channelFactory.CreateChannel())
     {
         try
         {
             return(channel.FileManager(new ClientData {
                 Action = "C", ClientCode = "0001", ClientName = "A0001", ClientOffice = "O0001", CountryCode = "C0001", OrgCode = "OR0001",
             }));
         }
         catch (System.Exception ex)
         {
             throw ex;
         }
     }
 }