示例#1
0
        public ActionResult Edit(int id = 0)
        {
            var restaurants = _restaurantRepository.GetList();
            var model       = _marketRepository.GetModel(id);

            ViewBag.Restaurants = restaurants;
            ViewBag.Market      = model;
            return(View());
        }