示例#1
0
        public ActionResult Index(Guid tourId, string keyword, SortOrder sort = default(SortOrder), int page = 1)
        {
            var tour = tourService.GetById(tourId);

            if (tour == null)
            {
                return(new HttpStatusCodeResult(HttpStatusCode.BadRequest));
            }

            var datas = puzzleService.ListAllToPagedAndFilterSort(tourId, keyword, sort, page);

            ViewBag.sort = sort;
            ViewBag.tour = tour;

            return(View(datas));
        }
示例#2
0
        public ActionResult Edit(Guid id)
        {
            var data = tourService.GetById(id);

            return(View(data));
        }