static XElement GetMindBodyContacts(Client client)
 {
     var mbAccount = MindBodyService.GetMindBodyAccount(client);
     string selectStatement = "SELECT TOP {0} * FROM CLIENTS WHERE EMAILNAME IS NOT NULL AND SUSPENDED = 0 AND DELETED = 0 ORDER BY ClientID DESC";
     var result = MindBodyService.SelectServiceRequest(mbAccount);            
     return result;
 }
 static List<Contact> GetExistingContacts(Client client)
 {
     
     DomainContext ctx = new DomainContext();
     var result = ctx.Contact.Where(n => n.ClientId == client.Id).ToList();
     return result;
 }
Exemple #3
0
 public IClient GetNewClient()
 {
   Guid id = Guid.NewGuid();
   IClient result = new Client {
     Id = id,
     ClientProperties = new ClientProperties { ClientId = id }
   };
     Context.Client.InsertOnSubmit(result as Client);
     return result;
 }
 partial void OnClientChanging(Client value);
Exemple #5
0
 private void OnClientListRemove(Client entity)
 {
     SendPropertyChanging(null);
     entity.ImportType = null;
     SendPropertyChanged(null);
 }
Exemple #6
0
 private void OnClientListAdd(Client entity)
 {
     SendPropertyChanging(null);
     entity.ImportType = this;
     SendPropertyChanged(null);
 }