public JsonResult ExcluirEndereco(int Identificador) { try { Endereco.Apagar(Identificador); return(Json(true)); } catch (Exception r) { return(Json(false)); } }
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); }