Esempio n. 1
0
        public ActionResult Edit(int id = 0)
        {
            ViewBag.Box         = _boxRepository.GetModel(id);;
            ViewBag.Restaurants = _restaurantRepository.GetList();

            return(View());
        }
Esempio n. 2
0
        public ActionResult Edit(int id = 0)
        {
            var restaurants = RestaurantRepository.GetList();
            var model       = BoxRepository.GetModel(id);

            //var areas = AreaRepository.GetList();
            ViewBag.Box         = model;
            ViewBag.Restaurants = restaurants;
            //ViewBag.Areas = areas;
            return(View());
        }