Пример #1
0
        // GET: Packs
        public ActionResult Index()
        {
            PacksService PS      = new PacksService();
            List <pack>  maListe = PS.getAllPacks();


            return(View(maListe));
        }
Пример #2
0
        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);
        }
Пример #3
0
        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));
        }
Пример #4
0
        // GET: Packs
        public ActionResult Index()
        {
            PacksService PS = new PacksService();
            List<pack> maListe = PS.getAllPacks();

            return View(maListe);
        }