[Route("")] public IHttpActionResult GetLayouts( [FromUri]LayoutSearchViewModel searchViewModel, [ModelBinder(typeof(SearchRequestModelBinder))]SearchRequest searchRequest) { SetUpSearch(searchRequest, searchViewModel); return Ok(searchViewModel.Result); }And the http call was using this location:
var dialogTypes = [{ name: 'layouts', location: '/api/layouts/getlayouts/' }, { name: 'forms', location: '/api/forms/getforms' }];I changed this to
var dialogTypes = [{ name: 'layouts', location: '/api/layouts' }, { name: 'forms', location: '/api/forms/getforms' }];and it's now working. But how did it work before - that's perplexing and that's why we spent so much time trying to understand how to fix it.