public void Index(ef.Contato c) { var bd = new Banco(); bd.Cadastrar(c); Index(); }
public ActionResult DeleteContato(ef.Contato c) { var bd = new Banco(); bd.Delete(c); // Send "Success" return(Json(new { success = true, responseText = "Cadastro deletado com sucesso!" }, JsonRequestBehavior.AllowGet)); }