public ActionResult Edit(int id = 0) { ViewBag.Box = _boxRepository.GetModel(id);; ViewBag.Restaurants = _restaurantRepository.GetList(); return(View()); }
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()); }