Guest User

Untitled

a guest
Dec 14th, 2018
88
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.81 KB | None | 0 0
  1. public class LoanManagement
  2. {
  3. private AccountManagement accountManagement;
  4. public void CreateLoanRequest(int customerId, long loanAmount,DateTime scoreStartDate, DateTime loanDate)
  5. {
  6. //چک کردن امتیاز موجودی حساب کاربر
  7. if(!accountManagement.CustomerHasAcceptableBalanceAvreage(customerId,scoreStartDate,loanDate))
  8. {
  9. throw new Exception();
  10. }
  11.  
  12. // بررسی اینکه مشتری وام معوق نداشته باشه
  13. if (CustomrHasDelayedLoan( customerId))
  14. {
  15. throw new Exception();
  16. }
  17.  
  18. //create LoanRequest
  19. }
  20.  
  21. public bool CustomrHasDelayedLoan(int customerId)
  22. {
  23. return true;
  24. }
  25.  
  26. }
Add Comment
Please, Sign In to add comment