コード例 #1
0
        public ActionResult Index(int id)
        {
            Restaurant r = applicationServices.GetRestaurantById(id);

            ViewBag.name = r.Name;
            ViewBag.iD   = r.RestaurantId;
            return(View(r.Reviews));
        }
コード例 #2
0
 public ActionResult Details(int id)
 {
     return(View(applicationServices.GetRestaurantById(id)));
 }