Beispiel #1
0
 public void OnGet()
 {
     //Message = "We are a family!";
     //vào json, thêm một Key "Message", thêm value, để che dấu dữ liệu.
     Message = config["Message"];
     //Companies = companyData.GetAll();
     Companies = companyData.GetCompaniesByName(SearchKeyWord);
 }
Beispiel #2
0
 public void OnGet()
 {
     Message   = config["Message"];
     Companies = companyData.GetCompaniesByName(SearchKeyWord);
 }
 public IActionResult Companies(int page = 1, string nameFilter = "")
 {
     ViewData["nameFilter"] = nameFilter;
     return(View(PaginatedList <CompanyDetail> .Create(_companyData.GetCompaniesByName(nameFilter).OrderBy(c => c.ticker), page, 100)));
 }