public ActionResult Editar(int id) { var modelo = repository.ObterPeloId(id); if (modelo == null) { return(RedirectToAction("Index")); } ViewBag.Modelo = modelo; return(View()); }
public ActionResult Editar(int id) { var modelo = repository.ObterPeloId(id); if (modelo == null) { return(RedirectToAction("Index")); } ViewBag.Modelo = modelo; return(View()); }