コード例 #1
0
        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
            _profileRepository.DeleteIndicatorFromGrouping(groupId, indicatorId, areaTypeId, sexId, ageId);

            // Also delete from the IndicatorMetaDataTextValue table (where it has an overridden groupId)
            _profileRepository.DeleteOverriddenMetaDataTextValues(indicatorId, groupId);

            _profileRepository.LogAuditChange("Indicator " + indicatorId + " (Area: " + areaTypeId +
                                              ", SexId:" + sexId + ", AgeId:" + ageId + " )  has been deleted.",
                                              indicatorId, null, _userName, DateTime.Now, CommonUtilities.AuditType.Delete.ToString());
        }