예제 #1
0
        // GET: Deshboard/AccomodationTypes
        public ActionResult Index(string searchTerm)
        {
            AccomodationTypesListingModel model = new AccomodationTypesListingModel();

            model.SearchTerm        = searchTerm;
            model.AccomodationTypes = accomodationTypesService.SearchAccomodationTypes(searchTerm);
            return(View(model));
        }
        public ActionResult Index(string searchterm)
        {
            AllAccomodationTypesViewModel model = new AllAccomodationTypesViewModel();

            model.AccomodationTypes = accomodationTypesService.SearchAccomodationTypes(searchterm);
            model.searchterm        = searchterm;
            return(View(model));
        }