Exemplo n.º 1
0
 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;
 }
Exemplo n.º 2
0
 static List<Contact> GetExistingContacts(Client client)
 {
     
     DomainContext ctx = new DomainContext();
     var result = ctx.Contact.Where(n => n.ClientId == client.Id).ToList();
     return result;
 }
Exemplo n.º 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;
 }
Exemplo n.º 4
0
 partial void OnClientChanging(Client value);
Exemplo n.º 5
0
 private void OnClientListRemove(Client entity)
 {
     SendPropertyChanging(null);
     entity.ImportType = null;
     SendPropertyChanged(null);
 }
Exemplo n.º 6
0
 private void OnClientListAdd(Client entity)
 {
     SendPropertyChanging(null);
     entity.ImportType = this;
     SendPropertyChanged(null);
 }