How to force web API to recognise querystring parameter
ASP.NET MVC4 Web API v1 controller is defined below. It should accept 1 or 2 query string parametrs. However ko parameter is always null if method is called. Request is below. How to fix so that klient or namepart parameter can passed in query string ? Web API v1 controller: namespace MyApp.Controllers { public class CustomersSearchViewModel { public string Klient { get; set; } public string Namepart { get; set; } } [Authorize] public class CustomersController : ApiController { public HttpResponseMessage Get(CustomersSearchViewModel ko) { // why ko is null ? var res = GetCustomers(ko.Klient,ko