Instead, use a record: public record CreateUserRequest ( string Name, string Email ); 🤔 Why is record a better choice for API models? 1. It's immutable by default Once the request object is created, ...
𝗧𝘆𝗽𝗲𝗦𝗰𝗿𝗶𝗽𝘁 𝗶𝗻𝗳𝗲𝗿: 𝗛𝗼𝘄 𝘁𝗼 𝗲𝘅𝘁𝗿𝗮𝗰𝘁 𝘁𝘆𝗽𝗲𝘀 ...
Some results have been hidden because they may be inaccessible to you
Show inaccessible results