Press Ctrl / CMD + C to copy this to your clipboard.
This post will be reported to the moderators as potential spam to be looked at
Hello,
I have this code [Route("")] [HttpGet] public IHttpActionResult GetOrders([FromUri] GetOrdersDto dto)
[Route("")] [HttpGet] public IHttpActionResult GetOrders([FromUri] GetOrdersDto dto)
where the dto has different names of fields
[JsonProperty(PropertyName = "start")] public DateTime From { get; set; }
The problem is that the start name is ignored and therefore always NULL.
Does Umbraco not using JsonNet as default formatter ?
Any help appreciated!
is working on a reply...
Write your reply to:
Upload image
Image will be uploaded when post is submitted
JsonProperty Attribute not working in ApiController
Hello,
I have this code
[Route("")] [HttpGet] public IHttpActionResult GetOrders([FromUri] GetOrdersDto dto)
where the dto has different names of fields
The problem is that the start name is ignored and therefore always NULL.
Does Umbraco not using JsonNet as default formatter ?
Any help appreciated!
is working on a reply...