コード例 #1
0
 public static Comment ToComment(CommentDataModel commentDataModel)
 {
     return(new Comment
     {
         Content = commentDataModel.Content,
         UserId = commentDataModel.AuthorId.Value
     });
 }
コード例 #2
0
 public static Comment ToComment(CommentDataModel commentDataModel)
 {
     return new Comment
     {
         Content = commentDataModel.Content,
         UserId = commentDataModel.AuthorId.Value
     };
 }