/*用户取回发件箱*/ public AllMessage MessageSent(string userID, string password, DateTime? startDate, DateTime? endDate) { UserService userService = new UserService(); UserInfo userInfo = userService.Login(userID, password); if (userInfo.ErrorMessage == null) { return userService.MessageSent(startDate, endDate); } else { AllMessage allMessage = new AllMessage(); allMessage.ErrorMessage = userInfo.ErrorMessage; return allMessage; } }