Example #1
0
        public bool ReadReply(ReplyQueryForm form)
        {
            var       mapper    = Common.GetMapper();
            ReplyDao  replyDao  = new ReplyDao(mapper);
            NotifyDao notifyDao = new NotifyDao(mapper);
            var       replies   = replyDao.Query(form);
            var       ids       = (from r in replies
                                   select r.ID).ToList();

            notifyDao.Update(new NotifyUpdateForm
            {
                QueryForm = new NotifyQueryForm {
                    ReplyIDs = ids
                },
                Entity = new Notify {
                    IsRead = 1
                }
            });
            return(true);
        }