I want to send data of object to my Web API. The API accepts a parameter of class, which properties are type of int and string.
This is my class:
publi
There is an another way: just create a DTO with the type string for number types and convert it into the controller or to the type that you need.