Example #1
0
        public static List <skAddresses> GetAddressList()
        {
            Proxies.AppDataClient DataClient = new Proxies.AppDataClient();
            try
            {
                DataClient.Open();

                List <skAddresses> ReturnList = DataClient.GetAddressesList().AddressList;

                return(ReturnList);
            }
            finally
            {
                DataClient.Close();
            }
        }
Example #2
0
        public List <skAddresses> GetAddressses()
        {
            Proxies.AppDataClient DataClient = new Proxies.AppDataClient();
            try
            {
                DataClient.Open();

                List <skAddresses> returnlist = DataClient.GetAddressesList().AddressList;
                if (returnlist.Count != 0)
                {
                    return(returnlist);
                }
                else
                {
                    throw new Exception("No Records Found");
                }
            }
            finally
            {
                DataClient.Close();
            }
        }