I need milisecond precision on my DateTime object therefore I am sending Ticks from my Windows Service to my WebApi. This is my call to api, the last parameter is the datetime
v1/Product/2/1/1000/636149434774700000
On the Api the request hits a controller that looks like this:
[Route("api/v1/Product/{site}/{start?}/{pageSize?}/{from?}")]
public IHttpActionResult Product(Site site, int start = 1, int pageSize = 100, DateTime? fromLastUpdated = null)
Default model binder fails to bind the ticks to the DateTime parameter. Any tips would be appreciated.