public async Task <List <Activity> > FetchAllActivities(int accountId, int contactKey) { var connString = await GetAccountConnectionString(accountId); var response = await _infowebAXClientReference.FetchAllActivities(connString, contactKey); return(GetDeserializedResponse <Activity>(response.FetchAllActivitiesResult.Nodes)); }
public async Task <FetchAllActivitiesResponse> FetchAllActivities(int accountId, int contactKey) { var connString = await GetAccountConnectionString(accountId); return(await _infowebAXClientReference.FetchAllActivities(connString, contactKey)); }