public static bool DelSendNote(string[] noteIds, out int count) { ManagerHelper.CheckPrivilege(Privilege.DeleteOrder); bool flag = true; count = 0; foreach (string str in noteIds) { if (!string.IsNullOrEmpty(str)) { flag &= new SendNoteDao().DelSendNote(str); if (flag) { count++; } } } return(flag); }
public static bool DelSendNote(string[] noteIds, out int count) { ManagerHelper.CheckPrivilege(Privilege.DeleteOrder); bool flag = true; count = 0; for (int i = 0; i < noteIds.Length; i++) { string text = noteIds[i]; if (!string.IsNullOrEmpty(text)) { flag &= new SendNoteDao().DelSendNote(text); if (flag) { count++; } } } return(flag); }