예제 #1
0
        public IActionResult Edit(int id)
        {
            var reply = _replyService.GetById(id);
            var model = new ReplyEditModel
            {
                Id           = reply.Id,
                ReplyContent = reply.Content
            };

            return(View(model));
        }
예제 #2
0
        public static ReplyInfo GetReply(int replyid)
        {
            IReply dal = Factory <IReply> .Create("Reply");

            return(dal.GetById(replyid));
        }