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)); }
public ActionResult Edit(Guid id) { var data = tourService.GetById(id); return(View(data)); }