0
to consuming an external api and one of the properties has hyphen: position-number.
How can I put a note so that I can receive this amount? I am trying this way:
[Regularexpression(@" [a-za-Z''-' s]$", Errormessage = "Characters are not allowed." )] public Object position-number;
Try that regular expression here: [a-za-Z d-]+$
– Natan Fernandes
Your problem is to parse this parameter or validate in your model?
– Leandro Angelo