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?
- public class MyModel
- {
- public int Id { get; set; }
- public int Level{ get; set; }
- public int Third{ get; set; }
- }
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 attend4days leftRegister
Shweta LodhaRank #31 · 39.8K reputationPosted Jun 15, 2020, 3:57 PM EDT