//SaveCustomer internal static void SaveCustomerAsync(List<Customer> saveList, ListCustomerCallback callback) { Guid callerKey = Guid.NewGuid(); ApartmentServiceClient proxy = GetProxy(callerKey, callback); proxy.SaveCustomerCompleted += new EventHandler<SaveCustomerCompletedEventArgs>(proxy_SaveCustomerCompleted); proxy.SaveCustomerAsync(saveList, callerKey); }
internal static void ListCustomerAsync(int? orgId, int? customerId, string firstName, string lastName, int? siteId, bool hasContracts, DateTime? contractDateStart, DateTime? contractDateEnd, bool includeLegacy, ListCustomerCallback callback) { Guid callerKey = Guid.NewGuid(); ApartmentServiceClient proxy = GetProxy(callerKey, callback); proxy.ListCustomerCompleted += new EventHandler<ListCustomerCompletedEventArgs>(proxy_ListCustomerCompleted); proxy.ListCustomerAsync(orgId, customerId, firstName, lastName, siteId, hasContracts, contractDateStart, contractDateEnd, includeLegacy, callerKey); }