/// <summary> /// Add agent id to calldetail /// </summary> /// <param name="campaign"></param> /// <param name="callDetail"></param> /// <returns></returns> public static bool AddVerificationAgentToCallDetail(Campaign objCampaign, CampaignDetails callDetail) { DialerEngine.Log.Write("|CA|{0}|{1}|Add verification agent '{2}' to call details invoked.", objCampaign.CampaignID, objCampaign.ShortDescription, callDetail.AgentName); CampaignService objCampService = null; try { if (callDetail != null) { objCampService = new CampaignService(); objCampService.AddVerificationAgentToCallDetail(callDetail.UniqueKey, Convert.ToInt64(callDetail.AgentID), callDetail.AgentName, objCampaign.CampaignDBConnString); return(true); } } catch (Exception ex) { DialerEngine.Log.WriteException(ex, "Error in AddAgentToCallDetail"); } finally { objCampService = null; } return(false); }