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...
This forum is in read-only mode while we transition to the new forum.
You can continue this topic on the new forum by tapping the "Continue discussion" link below.
Continue discussion
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...
This forum is in read-only mode while we transition to the new forum.
You can continue this topic on the new forum by tapping the "Continue discussion" link below.