how to complete with less line of code help
- public bool CancelTicket(User user
- {
- if (CancelledBy == user.Passenger)
- return true;
- if (CancelledBy == user.Admin)
- return true;
- return false;
- }
Know the answer? Post it. Somebody with the same question will find it here.
Answer a question in the forums and earn +20 SHARP for every answer.
See unanswered questions
DevSocialUpcoming · 3rd editionAI Agents ConferenceDec 1–3, 2026Live onlineFree to attend5days leftRegister
Amit GuptaRank #190 · 12.8K reputationPosted Nov 10, 2020, 7:19 PM EST
Rajesh Sharma77 reputationPosted Nov 10, 2020, 10:19 PM EST
Sachin SinghRank #66 · 26.2K reputationPosted Nov 10, 2020, 7:52 PM EST