Exemplo n.º 1
0
 internal static CommentFullModel CreateComment(Comment comment)
 {
     return new CommentFullModel()
     {
         ID = comment.ID,
         Text = comment.Text,
         Author = UserModel.CreateModel(comment.Author)
     };
 }
Exemplo n.º 2
0
 public static CommentModel CreateModel(Comment comment)
 {
     return new CommentModel
     {
         ID = comment.ID,
         Text = comment.Text,
         ImageId = comment.Image_ID
     };
 }