示例#1
0
        public List <List <string> > OutBox(string userid)
        {
            var msgSendReocrd = _msgProvider.Drafts(userid).OrderBy(a => a.SendTime).Where(a => a.OutStateID == "02" || a.OutStateID == "03").OrderByDescending(a => a.SendTime);
            var body          = new List <List <string> >();

            foreach (var item in msgSendReocrd)
            {
                body.Add(new List <string>()
                {
                    item.OutState.StateName,
                    _permissionProvider.UserInfo(item.ReceiverID).NickName,
                    item.Msg.Subjects,
                    item.SendTime == null?"":item.SendTime.Value.ToString(),
                    item.MsgSendRecordID,
                    item.InStateID
                });
            }
            return(body);
        }