public ActionResult Editar(NoticiasModel n) { RepositorioNoticias.Instance().AlterarNoticia(n); return(RedirectToAction("Listar")); }
public ActionResult Editar(int id) { var cliente = RepositorioNoticias.Instance().ListarNoticia(id); return(View("Cadastrar", cliente)); }
public ActionResult Listar() { var clientes = RepositorioNoticias.Instance().ListarNoticias(); return(View(clientes)); }
public ActionResult Excluir(int id) { RepositorioNoticias.Instance().ExcluirNoticia(id); return(RedirectToAction("Listar")); }
public ActionResult Cadastrar(NoticiasModel n) { RepositorioNoticias.Instance().IncluirNoticia(n); return(RedirectToAction("Listar")); }