public void Delete(int jamaProjectId, int jamaReleaseId) { ReleaseMappingData.ReleaseMappingRow dataRow = GetFromJamaId(jamaProjectId, jamaReleaseId); if (dataRow != null) { dataRow.Delete(); dataRow.AcceptChanges(); } }
/// <summary> /// Adds a new mapping entry /// </summary> /// <param name="spiraProjectId">The id of the spira project</param> /// <param name="spiraReleaseId">The id of the spira release</param> /// <param name="jamaProjectId">The id of the jama project</param> /// <param name="jamaReleaseId">The id of the jama release</param> public void Add(int spiraProjectId, int spiraReleaseId, int jamaProjectId, int jamaReleaseId) { //Create a new data row if (this.releaseMappingData != null) { ReleaseMappingData.ReleaseMappingRow dataRow = this.releaseMappingData.ReleaseMapping.AddReleaseMappingRow( spiraProjectId, spiraReleaseId, jamaProjectId, jamaReleaseId ); dataRow.AcceptChanges(); } }