public VoteDetailViewModel(VoteViewType type, int voteId, int groupMemberCount) { _voteId = voteId; var errCode = 0; var errMsg = string.Empty; var output = AntSdkService.GetVoteInfo(voteId, AntSdkService.AntSdkCurrentUserInfo.userId, ref errCode, ref errMsg); AntSdkQuerySystemDateOuput serverResult = AntSdkService.AntSdkGetCurrentSysTime(ref errCode, ref errMsg); DateTime serverDateTime = DateTime.Now; if (serverResult != null) { serverDateTime = PublicTalkMothed.ConvertStringToDateTime(serverResult.systemCurrentTime); } if (output != null) { SetVoteData(output, type, groupMemberCount, serverDateTime); } }