DeleteTriple() public method

public DeleteTriple ( System.Int64 subjectid, System.Int64 predicateid, System.Int64 objectid ) : bool
subjectid System.Int64
predicateid System.Int64
objectid System.Int64
return bool
        protected void gridEntities_RowDeleting(object sender, GridViewDeleteEventArgs e)
        {
            Edit.Utilities.DataIO data = new Profiles.Edit.Utilities.DataIO();

            Int64 _object = Convert.ToInt64(data.GetStoreNode(gridEntities.DataKeys[e.RowIndex].Values[0].ToString()));

            data.DeleteTriple(this.SubjectID, this.PredicateID, _object);
            this.LoadEntityGrid(true);

            upnlEditSection.Update();
        }
        protected void gridEntities_RowDeleting(object sender, GridViewDeleteEventArgs e)
        {
            Edit.Utilities.DataIO data = new Profiles.Edit.Utilities.DataIO();

            Int64 _object = Convert.ToInt64(data.GetStoreNode(gridEntities.DataKeys[e.RowIndex].Values[0].ToString()));

            // ULTIMATE HACK TO END ALL HACKS START
            if (this.PredicateID == 1445 || this.PredicateID == 1472)
            {
                long nodeIDOfGrantProfilePage = _object;

                string grantid = data.getGrantIDFromResearchRoleNodeID(nodeIDOfGrantProfilePage);

                if (grantid != " ")
                {
                    data.DeleteOneGrant(Convert.ToInt32(Session["ProfileUsername"]), grantid);
                }
                else
                {
                    data.DeleteTriple(this.SubjectID, this.PredicateID, _object);
                }

            }
            else
            {
                data.DeleteTriple(this.SubjectID, this.PredicateID, _object);
            }
            // ULTIMATE HACK TO END ALL HACKS END

            this.LoadEntityGrid(true);

            upnlEditSection.Update();
        }
        protected void gridEntities_RowDeleting(object sender, GridViewDeleteEventArgs e)
        {
            Edit.Utilities.DataIO data = new Profiles.Edit.Utilities.DataIO();

            Int64 _object = Convert.ToInt64(data.GetStoreNode(gridEntities.DataKeys[e.RowIndex].Values[0].ToString()));

            data.DeleteTriple(this.SubjectID, this.PredicateID, _object);
            this.LoadEntityGrid(true);

            upnlEditSection.Update();
        }