public ActionResult Editar(ExtratorNews extrator) { if (!ModelState.IsValid) { return(View(extrator)); } extratorNewsApp.Salvar(extrator); this.Flash("Extrator News Salvo com Sucesso!"); return(RedirectToAction("Index")); }
public void Salvar(ExtratorNews entidade) { contexto.Save(entidade); }