public void UpdateClientOrg(ClientOrgModel org, string username)
        {            
            org.AddressTypeID = this.AddressTypeID;
            org.CarrierRoute = this.CarrierRoute;
            org.City = this.City;
            org.County = this.County;
            org.Deliverable = this.Deliverable;
            org.Latitude = this.Latitude;
            org.Longitude = this.Longitude;
            org.Standardized = this.Standardized;
            org.StandardizedAddress = this.StandardizedAddress;
            org.StandardizedCityStZip = this.StandardizedCityStZip;
            org.State = this.State;
            org.Vacant = this.Vacant;
            org.Zipcode = this.Zipcode;
            org.ZipFour = this.ZipFour;
            org.RawAddress = this.RawAddress;
            org.RawAddress2 = this.RawAddress2;
            org.Name = this.Name;
            org.ParentOrganizationId = ParentId;
            org.Description = this.Description;
            org.LoadInProgress = this.LoadinProgress;
            org.Contracted = this.Contracted;

            DataProvider.UpdateClientOrganization(org, username);
        }
        public ClientOrgModel AddnewClientOrg(string username)
        {
            ParentId = (ParentId == null) ? ParentId : int.Parse(ParentOrgs[0].Value);

            var clientOrgModel = new ClientOrgModel()
            {
                Name = this.Name,
                ParentOrganizationId = ParentId,
                RawAddress = this.RawAddress,
                RawAddress2 = this.RawAddress2,
                Description = this.Description,
                CreatedBy = username,
                City = this.City,
                State = this.State,
                Zipcode = this.Zipcode,
                ZipFour = this.ZipFour,
                Contracted = this.Contracted,
                Terminated = this.Terminated,
                StandardizedAddress = string.Format("{0} {1}", this.RawAddress, this.RawAddress2),
                StandardizedCityStZip = string.Format("{0} {1}, {2}-{3}", this.City, this.State, this.Zipcode, this.ZipFour).TrimEnd('-')
            };

            DataProvider.AddClientOrganization(clientOrgModel);
            return clientOrgModel;
        }