public bool UpdateDemographics(ClientDemographicsWebSvc.ClientDemographicsObject ClientDemo) { var clientRepo = new ClientRepository(); PopulateReturnOptionObject(); var client = clientRepo.GetClientById(optionObject.EntityID); if (!String.IsNullOrEmpty(client.City)) ClientDemo.ClientAddressCity = client.City; return clientRepo.UpdateClientDemographics(ClientDemo, optionObject.EntityID); }
public bool UpdateClientDemographics(ClientDemographicsWebSvc.ClientDemographicsObject ClientDemo, string ClientID) { var webSvc = new ClientDemographicsWebSvc.ClientDemographics(); var response = webSvc.UpdateClientDemographics(this.SystemCode, this.UserName, this.Password, ClientDemo, ClientID); return response.Status == 1; }