3
Answers

how to complete with less line of code

Rajesh Sharma

Rajesh Sharma

4y
494
1
how to complete with less line of code help
  1. public bool CancelTicket(User user  
  2. {  
  3.         if (CancelledBy == user.Passenger)  
  4.                return true;  
  5.   
  6.         if (CancelledBy == user.Admin)  
  7.               return true;  
  8.   
  9.         return false;  
  10. }  
Answers (3)