Пример #1
0
        public ActionResult Auto()
        {
            var query       = Request["query"];
            var type        = Request["type"] ?? "0";
            var ltsResults  = _api.GetListAutoOne(query, 10, UserItem.AgencyID, int.Parse(type));
            var resulValues = new AutoCompleteProduct
            {
                query       = query,
                suggestions = ltsResults
            };

            return(Json(resulValues, JsonRequestBehavior.AllowGet));
        }