© 2026 Hedgehog Software, LLC

TwitterGitHubDiscord
More
CommunitiesDocsAboutTermsPrivacy
Search
Star
Setup for Free
C#C
C#•3y ago•
30 replies
Paulvv

How do i set the int to 0 and set the string to empty

I'm working on a API project. And i have a CouponDto that has 3 properties (See Image). When i run the API project the properties are already filled in inside the POST methode (See other image). I would the POST methode to start with the following properties.
"couponCode": "",
"discountAmount": 0,
"minAmount": 0
image.png
image.png
C# banner
C#Join
We are a programming server aimed at coders discussing everything related to C# (CSharp) and .NET.
61,871Members
Resources

Similar Threads

Was this page helpful?
Recent Announcements

Similar Threads

How to make string to int
C#CC# / help
3y ago
How do I typecast a string with a int
C#CC# / help
2y ago
❔ How would one convert string to int?
C#CC# / help
3y ago