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