Rajesh Sharma

Rajesh Sharma

  • NA
  • 92
  • 10.1k

how to complete with less line of code

Nov 10 2020 11:57 PM
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)