BloggingSystem.Services.DataMappers.CommentsMapper.ToModel C# (CSharp) 메소드

ToModel() 공개 정적인 메소드

public static ToModel ( Comment commentEntity ) : CommentModel
commentEntity BloggingSystem.Models.Comment
리턴 BloggingSystem.DataTransferObjects.CommentModel
        public static CommentModel ToModel(Comment commentEntity)
        {
            CommentModel commentModel = new CommentModel()
            {
                Author = commentEntity.Author.DisplayName,
                PostDate = commentEntity.PostDate,
                Text = commentEntity.Text
            };

            return commentModel;
        }
CommentsMapper