コード例 #1
0
        public ActionResult Suggest(string search, bool fuzzy)
        {
            //Get the JsonResult
            JsonResult suggestiondata = new JsonResult();

            suggestiondata.JsonRequestBehavior = JsonRequestBehavior.AllowGet;
            suggestiondata.Data = _AzureSearch.Suggest(search, fuzzy);

            //Return the array
            return(Json(suggestiondata));
        }