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; }
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; }