public ActionResult Edit(int id = 0) { var restaurants = _restaurantRepository.GetList(); var model = _marketRepository.GetModel(id); ViewBag.Restaurants = restaurants; ViewBag.Market = model; return(View()); }