Exemple #1
0
        public List <CommentInService> SearchCommentlogUnRead(int Id)
        {
            List <CommentInService> l = new List <CommentInService>();

            List <CommentMessage> lm = cop.SendCommentLogUnRead(Id);

            foreach (CommentMessage lo in lm)
            {
                CommentInService ll = new CommentInService();
                ll.LogUserId       = (long)lo.UserId;
                ll.CommentUserName = lo.CommentUserName;
                ll.TimeStamp       = (long)lo.TimeStamp;
                ll.LogId           = (long)lo.LogId;
                l.Add(ll);
            }
            return(l);
        }
 public bool SaveInCommentListInService(CommentInService log)
 {
     cop.InsertIntoCommentEntity(log);
     return true;
 }
Exemple #3
0
 public bool SaveInCommentListInService(CommentInService log)
 {
     cop.InsertIntoCommentEntity(log);
     return(true);
 }
        public List<CommentInService> SearchCommentlogUnRead(int Id)
        {
            List<CommentInService> l = new List<CommentInService>();

            List<CommentMessage> lm = cop.SendCommentLogUnRead(Id);

            foreach (CommentMessage lo in lm)
            {
                CommentInService ll = new CommentInService();
                ll.LogUserId = (long)lo.UserId;
                ll.CommentUserName = lo.CommentUserName;
                ll.TimeStamp = (long)lo.TimeStamp;
                ll.LogId = (long)lo.LogId;
                l.Add(ll);
            }
            return l;
        }