Exemple #1
0
 public void GiveFreeWeekend(object sender, PersonDetailsEventArgs e)
 {
     // give weekend for promotion (marketing)
     // Name
     // Mobile phone
     if (sender is Bank)
     {
         Console.WriteLine($"{e.Name} is getting free weekend from Bank.. calling {e.MobileNumber}");
     }
     else
     {
         Console.WriteLine($"{e.Name} is getting free weekend .. calling {e.MobileNumber}");
     }
 }
Exemple #2
0
 public void CallCustomerPassed1M(object sender, PersonDetailsEventArgs e)
 {
     Console.WriteLine($"Call and suggest house for {e.Name} number {e.MobileNumber}");
 }