Exemplo n.º 1
0
        public ActionResult BeautyRoom(string keyWord = "")
        {
            List <Vw_Pet> petList = PetModel.getPetListByisState();

            if (!keyWord.Equals(string.Empty))
            {
                petList = PetModel.getPetListByKeyWord(keyWord).Where(o => o.isState == true).ToList();
            }

            var result = petList.OrderBy(o => o.petSN).ToPagedList();

            return(View(result));
        }
Exemplo n.º 2
0
        // GET: Pet
        public ActionResult Index(string keyWord = "")
        {
            List <Vw_Pet> petList = PetModel.getPetList();

            if (!keyWord.Equals(string.Empty))
            {
                petList = PetModel.getPetListByKeyWord(keyWord);
            }

            var result = petList.OrderBy(o => o.petSN).ToPagedList();

            return(View(result));
        }