Пример #1
0
 public CommentBase GetCommentBase()
 {
     CommentBase res = new CommentBase();
      res.CommentId = CommentId;
      res.UserId = UserId;
      res.FlightId = FlightId;
      res.Datime = Datime;
      res.Remarks = Remarks;
     return res;
 }
Пример #2
0
        public CommentBase GetCommentBase()
        {
            CommentBase res = new CommentBase();

            res.CommentId = CommentId;
            res.UserId    = UserId;
            res.FlightId  = FlightId;
            res.Datime    = Datime;
            res.Remarks   = Remarks;
            return(res);
        }
Пример #3
0
        public void ReadCommentBase(CommentBase comment)
        {
            if (comment.CommentId > -1)
            {
                CommentId = comment.CommentId;
            }

            if (comment.UserId > -1)
            {
                UserId = comment.UserId;
            }

            if (comment.FlightId > -1)
            {
                FlightId = comment.FlightId;
            }

            Datime = comment.Datime;

            if (!String.IsNullOrEmpty(comment.Remarks))
            {
                Remarks = comment.Remarks;
            }
        }