Last active
September 28, 2017 12:28
-
-
Save kkadir/93d5dac77f83d15ac86880563cc59cd3 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public void EvaluateCustomerDepositStatusforEnrollment() | |
{ | |
try | |
{ | |
... | |
// Get customer list with status "L - Letter Generated" | |
var lstCustomerDepositData = depositEvaluationTask.GetCustomersListByStatus(CustomerStatusOption.EnrollmentProcessing_LetterGenerated); | |
if (lstCustomerDepositData == null || lstCustomerDepositData.Count.Equals(0)) return; // <== This line returns if there aren't any customers with the "L - Letter Generated" status | |
foreach (var customer in lstCustomerDepositData) | |
{ | |
depositEvaluationTask.Process(customer.CustomerId); | |
} | |
// Get customer list with status "D - Deposit Pending" | |
var lstCustomerDepositDataPending = depositEvaluationTask.GetCustomersListByStatus(CustomerStatusOption.EnrollmentProcessing_DepositPending); // <== This line will never be reached if there aren't any customers with the "L - Letter Generated" status | |
if (lstCustomerDepositDataPending == null || lstCustomerDepositData.Count.Equals(0)) return; | |
foreach (var customer in lstCustomerDepositDataPending) | |
{ | |
depositEvaluationTask.Process(customer.CustomerId); | |
} | |
} | |
catch (Exception ex) | |
{ | |
Manager.Publish(ex); | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment