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

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