public MomentController(ISessionProvider<AefSession> sessionProvider, IMomentManager momentManager, IMomentFileManager momentFileManager, IMomentLikeManager momentLikeManager, IMomentCommentManager momentCommentManager, IAccessTimeManager accessTimeManager, IStaffManager staffManager, IOrgManager orgManager) : base(sessionProvider) { Args.NotNull(momentManager, nameof(momentManager)); Args.NotNull(momentFileManager, nameof(momentFileManager)); Args.NotNull(momentManager, nameof(momentManager)); Args.NotNull(staffManager, nameof(staffManager)); Args.NotNull(accessTimeManager, nameof(accessTimeManager)); Args.NotNull(orgManager, nameof(orgManager)); m_MomentManager = momentManager; m_MomentFileManager = momentFileManager; m_MomentLikeManager = momentLikeManager; m_MomentCommentManager = momentCommentManager; m_SessionProvider = sessionProvider; m_StaffManager = staffManager; m_AccessTimeManager = accessTimeManager; m_OrgManager = orgManager; }
public static MomentCommentExistsResult Check(IMomentCommentManager momentCommentManager, Guid momentCommentId) { if (momentCommentManager == null) throw new ArgumentNullException(nameof(momentCommentManager)); var mement = momentCommentManager.FineMomentCommentById(momentCommentId); return Check(mement, "不存在对应的留言信息."); }