Exemplo n.º 1
0
        public void Index(ef.Contato c)
        {
            var bd = new Banco();

            bd.Cadastrar(c);

            Index();
        }
Exemplo n.º 2
0
        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));
        }