private PostFailedInfoDTO ToDTO(PostFailedInfoEntity postFailedInfoEntity)
        {
            PostFailedInfoDTO postFailedInfoDTO = new PostFailedInfoDTO()
            {
                Id            = postFailedInfoEntity.Id,
                PostHistoryId = postFailedInfoEntity.PostHistoryId,
                ReadState     = postFailedInfoEntity.ReadState,
                UserId        = postFailedInfoEntity.UserId
            };

            return(postFailedInfoDTO);
        }
 public long InsertPostFailedInfo(PostFailedInfoDTO t_PostFailedInfo)
 {
     using (B2CDbContext ctx = new B2CDbContext())
     {
         PostFailedInfoEntity postFailedInfoEntity = new PostFailedInfoEntity()
         {
             PostHistoryId = t_PostFailedInfo.PostHistoryId,
             ReadState     = t_PostFailedInfo.ReadState,
             UserId        = t_PostFailedInfo.UserId
         };
         ctx.PostFailedInfos.Add(postFailedInfoEntity);
         ctx.SaveChanges();
         return(postFailedInfoEntity.Id);
     }
 }