Esempio n. 1
0
 public static void SetNextApproverElsePrint(Approver approver, int numberOfLeaves)
 {
     if (approver.NextApprover != null)
     {
         approver.NextApprover.ApproveLeave(numberOfLeaves);
     }
     else
     {
         Console.WriteLine("Your leaves require special approval, please contact HR dept.");
     }
 }
Esempio n. 2
0
 public void SetNextApprover(Approver nextApprover)
 {
     NextApprover = nextApprover;
 }