public static void DeleteRiskType(string TypeCode) { try { if (TypeCode != "") { EntityData entity = ConstructDAO.GetRiskTypeByCode(TypeCode); ConstructDAO.DeleteRiskType(entity); entity.Dispose(); } } catch (Exception exception) { throw exception; } }