public CommentBase GetCommentBase() { CommentBase res = new CommentBase(); res.CommentId = CommentId; res.UserId = UserId; res.FlightId = FlightId; res.Datime = Datime; res.Remarks = Remarks; return res; }
public CommentBase GetCommentBase() { CommentBase res = new CommentBase(); res.CommentId = CommentId; res.UserId = UserId; res.FlightId = FlightId; res.Datime = Datime; res.Remarks = Remarks; return(res); }
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; } }