private Boolean add_Tipo_Documento_Default() { String[] valores = { "" + id_sucursal }; if (Mgr_Documento.Add_TipoDocumento_Sucursal(valores)) { return(add_Lista_Actividad_Default()); } else { Mgr_Sucursal.Delete_Sucursal(id_sucursal); return(false); } }
private void add_Tipo_Documento_Default(int id_sucursal) { String[] valores = { "" + id_sucursal }; if (Mgr_Documento.Add_TipoDocumento_Sucursal(valores)) { //Si llega aqui enviar el email..... string clave = objUtilidades.descifrarCadena2(Convert.ToString(ViewState["clave"].ToString())); Utilidades.enviarEmpresa(txtemailEmpresa.Text, txtNomEmpresa.Text, ViewState["login"].ToString(), clave); Modal.MostrarMsjModal(MensajeError.Exito_Add_Empresa.Value, "EXI", this); } else { Mgr_Empresa.Delete_Empresa(IdEmpresa); Modal.MostrarMsjModal(MensajeError.Error_Add_Default_TipoDocumento.Value, "ERR", this); } }