c# - Postman error parsing number -



c# - Postman error parsing number -

i attempting pass info using postman getting error:

additional information: unexpected character encountered while parsing number: ;. path 'waiverid', line 2, position 16.

raw:

{ "waiverid": 0; "carrierid": 0; "expression": 0.0; "categoryid": 1; "rategroup": ""; "fuelcap": 0.0; "startdate" : ""; "enddate" : ""; "accountnumber" : ""; "zone" : ""; "origincountry" : 202; "destinationcountry" = 202; "customerid" : "0"; }

c# object

public class surchargewaiversaverequest : isurchargewaiver { public int waiverid { get; set; } public int carrierid { get; set; } public decimal? look { get; set; } public int categoryid { get; set; } public string rategroup { get; set; } public decimal? fuelcap { get; set; } public datetime? startdate { get; set; } public datetime? enddate { get; set; } public string accountnumber { get; set; } public string zone { get; set; } public int origincountry { get; set; } public int destinationcountry { get; set; } public int? customerid { get; set; } }

when controller object coming in null:

[route("add/"), httppost] public void add(surchargewaiversaverequest waiver) { _service.add(waiver); }

they same , keys fine, missing?

c# postman

Comments

Popular posts from this blog

Using Android Volley to post an array to PHP -

python - How to add an model instance to a django queryset? -

angularjs - No 'Access-Control-Allow-Origin' error from local domain to public API -