// GET: Contatos/Delete/5 public ActionResult Delete(int id) { var tela = new ContatoViewModel(); var contatoService = new ContatoService(); tela.Cnt = contatoService.Find(id); tela.Titulo = "Deletar contato"; return(View(tela)); }
// GET: Contatos/Delete/5 public ActionResult Delete(int id) { var tela = new ContatoViewModel(); var contatoService = new ContatoService(); tela.Cnt = contatoService.Find(id); tela.Titulo = "Deletar contato"; return(View(tela)); }