public static void Delete(int IMGroupId) { if (!CanDelete()) { throw new AccessDeniedException(); } DBIMGroup.Delete(IMGroupId); }