public ActionResult AutoProduct() { var query = Request["query"]; var type = Request["type"] ?? "0"; var ltsResults = _productApi.GetListAutoFull(query, 10, UserItem.AgencyID, int.Parse(type)); var resulValues = new AutoCompleteProduct { query = query, suggestions = ltsResults }; return(Json(resulValues, JsonRequestBehavior.AllowGet)); }