// GET: Packs public ActionResult Index() { PacksService PS = new PacksService(); List <pack> maListe = PS.getAllPacks(); return(View(maListe)); }
public ActionResult AllPacks(string searchString) { PacksService PS = new PacksService(); List<pack> maListe = PS.getAllPacks(); if (!String.IsNullOrEmpty(searchString)) { maListe = maListe.Where(p => p.name.Contains(searchString)).ToList(); } return View(maListe); }
public ActionResult AllPacks(string searchString) { PacksService PS = new PacksService(); List <pack> maListe = PS.getAllPacks(); if (!String.IsNullOrEmpty(searchString)) { maListe = maListe.Where(p => p.name.Contains(searchString)).ToList(); } return(View(maListe)); }
// GET: Packs public ActionResult Index() { PacksService PS = new PacksService(); List<pack> maListe = PS.getAllPacks(); return View(maListe); }