Пример #1
0
 public JsonResult About(string Prefix)
 {
     using (ChulWooContext db = new ChulWooContext())
     {
         var names = db.MaterialNames.Where(m => m.NameVn.ToLower().StartsWith(Prefix.ToLower())).Select(m => new { m.NameVn }).ToList();
         return(Json(names, JsonRequestBehavior.AllowGet));
     }
 }