示例#1
0
        public JsonResult SearchCustomers(string term)
        {
            var data = _fR.SearchCustomers(term, 30).Select(s => new { id = s.Id, text = $"{s.Name} ({s.CustomerCode})" });

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