Rukhsaan

Rukhsaan

  • NA
  • 116
  • 22.3k

Return values based on condition

Jun 15 2020 7:51 PM
I have this class but I don't want to return Third property all the times form my REST API. How can I do that?
  1. public class MyModel  
  2. {  
  3.     public int Id { getset; }  
  4.     public int Level{ getset; }  
  5.     public int Third{ getset; }  
  6. }  

Answers (1)