public ActionResult Form(int RestauranteId) { Session["restauranteAtual"] = rep.Busca(RestauranteId); Sugestoes sugestoes = new Sugestoes(); return(View(sugestoes)); }
public ActionResult PegarProdutos(int restauranteId) { Restaurante restaurante = rep.Busca(restauranteId); if (restaurante != null) { Session["restauranteAtual"] = restaurante; return(RedirectToAction("Index", "Produto")); } else { return(RedirectToAction("Index")); } }