Skip to main content

You are not logged in. Your edit will be placed in a queue until it is peer reviewed.

We welcome edits that make the post easier to understand and more valuable for readers. Because community members review edits, please try to make the post substantially better than how you found it, for example, by fixing grammar or adding additional resources and hyperlinks.

3
  • What does TestModel look like? Commented Apr 21, 2017 at 8:58
  • Test model contains, public int CurrentPage { get; set; } public int ItemsPerPage { get; set; } public int PageNumber { get; set; } public string Type { get; set; } and more.. Commented Apr 21, 2017 at 9:01
  • 1
    You try to put an Object into an Url Route. But a URL is nothing other than a string, so you can't put it in there. What you can do is encode it with JSON, but that won't work in the URL because of the encoding of the characters. You can either do a Post (If it doesn't have to be restful) or take it in via FromUrl, as Royi described. Commented Apr 21, 2017 at 9:01