public ActionResult Create([Bind(Include = "RestauranteId,Nome")] RestauranteViewModel restaurante) { if (ModelState.IsValid) { Restaurante rest = new Restaurante() { Nome = restaurante.Nome }; repRestaurante.Inserir(rest); repRestaurante.SalvarTodos(); ViewBag.Mensagem = "Restaurante Cadastrado com Sucesso!"; return(RedirectToAction("Index")); } return(View(restaurante)); }