Example #1
0
        public AppAddresss GetAddress(string addressid, string companyid, string objectid)
        {
            ApplicationService.address address = new ApplicationService.address();
            AppAddresss returnaddress          = new AppAddresss();

            try
            {
                address       = appclient.GetAddres(companyid, objectid, addressid, "address");
                returnaddress = AppAddresss.ConvertServiceAddressToAppAddress(address);
            }
            catch
            {
            }
            return(returnaddress);
        }
Example #2
0
        public static AppAddresss ConvertServiceAddressToAppAddress(ApplicationService.address serviceAddress)
        {
            AppAddresss tempaddress = new AppAddresss();

            tempaddress.id         = serviceAddress.addressid;
            tempaddress.objectid   = serviceAddress.objectid;
            tempaddress.companyid  = serviceAddress.creatorid;
            tempaddress.line1      = serviceAddress.addressline1;
            tempaddress.line2      = serviceAddress.addressline2;
            tempaddress.landmark   = serviceAddress.landmark;
            tempaddress.city       = serviceAddress.city;
            tempaddress.state      = serviceAddress.state;
            tempaddress.country    = serviceAddress.country;
            tempaddress.zipcode    = serviceAddress.zipcode;
            tempaddress.objecttype = serviceAddress.objecttype;

            return(tempaddress);
        }
        public AppAddresss GetAddress(string addressid, string companyid, string objectid)
        {
            ApplicationService.address address = new ApplicationService.address();
            AppAddresss returnaddress = new AppAddresss();
            try
            {
                address = appclient.GetAddres(companyid, objectid, addressid, "address");
                returnaddress = AppAddresss.ConvertServiceAddressToAppAddress(address);
            }
            catch
            {

            }
            return returnaddress;
        }