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)));
        }
コード例 #2
0
        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)));
        }