Ejemplo n.º 1
0
        public ActionResult Search(string nazev)
        {
            int         celkem;
            GameDao     hraDao = new GameDao();
            IList <Hra> ucty   = hraDao.SearchName(nazev);

            celkem         = ucty.Count;
            ViewBag.celkem = celkem;
            return(View("Hra", ucty));
        }
Ejemplo n.º 2
0
        public ActionResult SearchProPolozku(string nazev, int?id)
        {
            int         celkem;
            GameDao     hraDao = new GameDao();
            IList <Hra> ucty   = hraDao.SearchName(nazev);

            celkem               = ucty.Count;
            ViewBag.celkem       = celkem;
            ViewBag.objednavkaid = id;
            return(PartialView("PridatPolozkuAjax", ucty));
        }