예제 #1
0
 public IActionResult OnGet(int id)
 {
     Restaurent = _restaurentData.Get(id);
     if (Restaurent == null)
     {
         return(RedirectToAction("Index", "Home"));
     }
     return(Page());
 }
예제 #2
0
        public IActionResult Details(int id)
        {
            var model = _restaurent.Get(id);

            return(View(model));
        }