public static ClsLeadCollection GetAll(long userid, out long campaingID, ClsUserDataService clsDataService)//,int totalRecordToFetch) { try { ClsLeadCollection obj = new ClsLeadCollection(); //obj.MapObjects(new ClsUserDataService().GetLeadsList(userid, out campaingID));//,totalRecordToFetch)); //System.Data.DataSet dt= clsDataService.GetLeadsList(userid,out campaingID); //obj.MapObjects(dt.Tables[0]); //obj.MapObjects(dt.Tables[1]); obj.MapObjects(clsDataService.GetLeadsList(userid, out campaingID)); return(obj); } catch (Exception ex) { VMuktiHelper.ExceptionHandler(ex, "GetAll()", "ClsLeadCollection.cs"); campaingID = 0; return(null); } }
public void GetNextLeadList(bool isFirstTime) { try { //if (!isFirstTime) //{ // timer4Sync_Elapsed(null, null); //} if (objLeadCollection == null || objLeadCollection.Count == 0) { objLeadCollection = ClsLeadCollection.GetAll(userid, out CampaingID, clsDataService); InsertLeadsIntoTable(); } timer4Sync_Elapsed(null, null); } catch (Exception ex) { ex.Data.Add("My Key", "VMukti--:--VmuktiModules--:--Call Center--:--AutoDialer--:--Dialer.Business--:--ClsChannelManager.cs--:--GetNextLeadList()--"); ClsException.LogError(ex); ClsException.WriteToErrorLogFile(ex); } }