private void DeleteFromGrouping(int groupId, int indicatorId, int areaTypeId, int sexId, int ageId) { // Profile doesn't own the indicator so actually deleted it from the grouping table _dataAccess.DeleteIndicatorFromGrouping(groupId, indicatorId, areaTypeId, sexId, ageId); // Also delete from the IndicatorMetaDataTextValue table (where it has an overridden groupId) _dataAccess.DeleteOverridenMetaDataTextValues(indicatorId, groupId); _dataAccess.LogAuditChange("Indicator " + indicatorId + " (Area: " + areaTypeId + ", SexId:" + sexId + ", AgeId:" + ageId + " ) has been deleted.", indicatorId, null, _userName, DateTime.Now, CommonUtilities.AuditType.Delete.ToString()); }