private ResultsObject DoCompletedUpdates(CONTACT2ChangeTracking_Result ctResult, ResultsObject ro) { ClientData clientData = _gm_repo.GetClientData(_gm_repo.GetKey5(ctResult.ACCOUNTNO)); if (ctResult.uy12com_bool && clientData.CompletedDate_2009 != null) { ro = _apiClient.SendUpdateClaimStatus(Enums.Year.UY12, ro, 8); } if (ctResult.uy13com_bool && clientData.CompletedDate_2010 != null) { ro = _apiClient.SendUpdateClaimStatus(Enums.Year.UY13, ro, 8); } if (ctResult.uy14com_bool && clientData.CompletedDate_2011 != null) { ro = _apiClient.SendUpdateClaimStatus(Enums.Year.UY14, ro, 8); } if (ctResult.uy15com_bool && clientData.CompletedDate_2012 != null) { ro = _apiClient.SendUpdateClaimStatus(Enums.Year.UY15, ro, 8); } if (ctResult.uy16com_bool && clientData.CompletedDate_2013 != null) { ro = _apiClient.SendUpdateClaimStatus(Enums.Year.UY16, ro, 8); } if (ctResult.uy17com_bool && clientData.CompletedDate_2014 != null) { ro = _apiClient.SendUpdateClaimStatus(Enums.Year.UY17, ro, 8); } if (ctResult.uy18com_bool && clientData.CompletedDate_2015 != null) { ro = _apiClient.SendUpdateClaimStatus(Enums.Year.UY18, ro, 8); } if (ctResult.uy19com_bool && clientData.CompletedDate_2016 != null) { ro = _apiClient.SendUpdateClaimStatus(Enums.Year.UY19, ro, 8); } if (ctResult.uy20com_bool && clientData.CompletedDate_2017 != null) { ro = _apiClient.SendUpdateClaimStatus(Enums.Year.UY20, ro, 8); } if (ctResult.uy21com_bool && clientData.CompletedDate_2018 != null) { ro = _apiClient.SendUpdateClaimStatus(Enums.Year.UY21, ro, 8); } if (ctResult.uy22com_bool && clientData.CompletedDate_2019 != null) { ro = _apiClient.SendUpdateClaimStatus(Enums.Year.UY22, ro, 8); } return(ro); }
private List <ResultsObject> SendContact1Changes(List <CONTACT1ChangeTracking_Result> contact1Results) { List <ResultsObject> results = new List <ResultsObject>(); foreach (CONTACT1ChangeTracking_Result ctResult in contact1Results) { ResultsObject ro = new ResultsObject(); ro.Accountno = ctResult.ACCOUNTNO; ro = _gmRepo.GetReferenceNumberFromAccountno(ro.Accountno, ro); if (!string.IsNullOrEmpty(_requestProcessor.ProcessPersonIdFetch(ro.ReferenceNumber))) { ro = _requestProcessor.ProcessContact1Requests(ctResult); } else { ClientData clientData = new ClientData(); clientData = _gmRepo.GetClientData(ro.ReferenceNumber); ro = _requestProcessor.ProcessCreatePersonRequest(clientData); } results.Add(ro); } return(results); }