public static bool UpdateCommunicationPreferences(string userName, bool emailContact, bool phoneContact, bool mailContact, string modifierUserName, AsyncCallback callback) { using (var client = new ProspectServiceProxy()) { return(client.ExecuteAsync(proxy => proxy.UpdateCommunicationPreferences(userName, emailContact, phoneContact, mailContact, modifierUserName), callback, null)); } }
public static bool AddCommunication(int propectMemberID, string CreatedBy, Nullable <int> CommChannelID, Nullable <int> CommDirectionID, Nullable <int> CallResultsID, Nullable <int> CommSourceID, Nullable <int> CommTypeID, string CommText, AsyncCallback callback) { using (var client = new ProspectServiceProxy()) { return(client.ExecuteAsync(proxy => proxy.AddCommunication(propectMemberID, CreatedBy, CommChannelID, CommDirectionID, CallResultsID, CommSourceID, CommTypeID, CommText), callback, null)); } }
public static List <ProspectMemberContract> GetUsersBySearchParms(String FirstName, String LastName, AsyncCallback callback) { try { using (var client = new ProspectServiceProxy()) { return(client.ExecuteAsync(proxy => proxy.GetUsersBySearchParms(FirstName, LastName), callback, null).ToList()); } } catch (Exception ex) { Log.Debug(string.Format("Prospect Service Agent: Execution of {0} complete. {1}", "GetUsersBySearchParms", ex.Message)); } return(new List <ProspectMemberContract>()); }