Exemple #1
0
 public bool Set(ReplysInputDto replysInputDto)
 {
     try
     {
         DateTime   datetime = DateTime.Now;
         PostReplys reply    = new PostReplys
         {
             PostId       = replysInputDto.PostId,
             ReplyContent = replysInputDto.Content,
             CreateTime   = datetime,
             CreateUserId = replysInputDto.UserId,
         };
         reply.ReplyContent = reply.ReplyContent;
         _replyService.Insert(reply);
         return(true);
     }
     catch (System.Exception)
     {
         throw;
     }
 }
Exemple #2
0
 public bool Insert(PostReplys replysInputDto)
 {
     dbService.Insert(replysInputDto);
     return(true);
 }