コード例 #1
0
 public IActionResult Details(string Id)
 {
     if (HttpContext.Session.GetString("ID") == null)
     {
         return(RedirectToAction("Login", "Admin"));
     }
     else
     {
         ViewBag.listGetHotels = tourRepository.listGetHotels(Id);
         return(View(tourRepository.getTour(Id)));
     }
 }