常用方法
常用方法
常用方法
常用方法
public JsonResult Countries(string filter = "") { var repository = new CountryRepository(); var list = (from country in repository.AllBy(filter) select new AutoCompleteItem() { id = country.CountryCode, value = country.CountryName }).ToList(); return(Json(list, JsonRequestBehavior.AllowGet)); }