コード例 #1
0
        public JsonResult ExcluirEndereco(int Identificador)
        {
            try
            {
                Endereco.Apagar(Identificador);

                return(Json(true));
            }
            catch (Exception r)
            {
                return(Json(false));
            }
        }
コード例 #2
0
        public static string ExcluirIdEndereco(int id)
        {
            string retorno = null;


            try
            {
                Endereco endereco = new Endereco();
                retorno = endereco.Apagar(id);
            }
            catch (Exception ex)
            {
                retorno = "Falha, motivo: " + ex.ToString();
            }


            return(retorno);
        }