public StaffInvController(ISessionProvider<AefSession> sessionProvider,
            IStaffInvManager staffInvManager,
            IOrgManager orgManager,
            INotificationManager notificationManager,IConfiguration config)
            : base(sessionProvider)
        {
            if (orgManager == null) throw new ArgumentException(nameof(orgManager));
            if (staffInvManager == null) throw new ArgumentException(nameof(staffInvManager));
            if (notificationManager == null) throw new ArgumentException(nameof(notificationManager));
            if (config == null) throw new ArgumentException(nameof(config));

            m_StaffInvManager = staffInvManager;
            m_OrgManager = orgManager;
            m_Configuration = config;
            m_NotificationManager = notificationManager;
        }
 public static StaffInvExistsResult Check(IStaffInvManager staffInvManager, Guid orgId, Guid accountId)
 {
     if (staffInvManager == null) throw new ArgumentNullException(nameof(staffInvManager));
     var staffInv = staffInvManager.FindStaffInvByOrgAccount(orgId, accountId);
     return Check(staffInv, "不存在对应的组织成员邀请信息.");
 }