public IHttpActionResult SearchByCategory([FromBody] dynamic json) { string q = json.q; var categories = (IEnumerable <string>)json.categories.ToObject <List <string> >(); return(Ok(service.SearchByCategory(q, categories, 1, 10))); }
public Microsoft.AspNetCore.Mvc.OkObjectResult SearchByCategory([FromBody] dynamic json) { string q = json.q; var categories = (IEnumerable <string>)json.categories.ToObject <List <string> >(); return(Ok(service.SearchByCategory(q, categories, 1, 10))); }