Hello,
I have this code
[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!
This is a companion discussion topic for the original entry at https://our.umbraco.com/forum/101534-jsonproperty-attribute-not-working-in-apicontroller