public static void DeleteItem(int ItemId, DictionaryTypes dict) { switch (dict) { case DictionaryTypes.Categories: DBCommon.DeleteCategory(ItemId); break; case DictionaryTypes.IncidentSeverities: DBIncident.DeleteIncidentSeverity(ItemId); break; case DictionaryTypes.IncidentTypes: DBIncident.DeleteIncidentType(ItemId); break; case DictionaryTypes.ProjectTypes: DeleteProjectType(ItemId); break; // case DictionaryTypes.Clients: // DBProject.DeleteClient(ItemId); // break; case DictionaryTypes.ProjectCategories: DBProject.DeleteProjectCategory(ItemId); break; case DictionaryTypes.IncidentCategories: DBIncident.DeleteIncidentCategory(ItemId); break; case DictionaryTypes.Currency: DBCommon.DeleteCurrency(ItemId); break; case DictionaryTypes.DocumentStatus: DBDocument.DeleteDocumentStatus(ItemId); break; case DictionaryTypes.ProjectPhases: DBProject.DeleteProjectPhase(ItemId); break; case DictionaryTypes.RiskLevels: DBProject.DeleteRiskLevel(ItemId); break; } }